Results 1 to 18 of 18

Thread: Remove element of xml

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    24
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Remove element of xml

    xml Code:
    1. <lista>
    2. <client>
    3. <dns>google.com.br</dns>
    4. <phone>(19)3632-9244</phone>
    5. <name>Google</name>
    6. </client>
    7. <client>
    8. <dns>uol.com.br</dns>
    9. <phone>(16)3307-5496</phone>
    10. <name>Uol</name>
    11. </client>
    12. <client>
    13. <dns>terra.com.br</dns>
    14. <phone>(21)3368-0422</phone>
    15. <name>Terra</name>
    16. </client>
    17. </list>
    To copy to clipboard, switch view to plain text mode 


    I wonder how I can delete everything between the tag <client> </client> choosing the name,
    eg:
    I would like to delete the customer information Google:
    xml Code:
    1. <client>
    2. <dns>google.com.br</dns>
    3. <phone>(19)3632-9244</phone>
    4. <name>Google</name>
    5. </client>
    To copy to clipboard, switch view to plain text mode 


    Thanks
    Last edited by Lykurg; 4th February 2011 at 06:42. Reason: added [HIGHLIGHT="xml"]

Similar Threads

  1. [QML] Video element
    By grezly in forum Qt Programming
    Replies: 1
    Last Post: 6th April 2011, 17:26
  2. Problem with translate one element
    By Hostel in forum Newbie
    Replies: 0
    Last Post: 19th November 2010, 00:00
  3. How to get focum element on QWebPage?
    By corrado in forum Qt Programming
    Replies: 0
    Last Post: 16th May 2010, 15:00
  4. Change a QList element
    By mcrahr in forum Newbie
    Replies: 1
    Last Post: 23rd August 2009, 11:16
  5. Fix element in risizing window
    By JoZCaVaLLo in forum Newbie
    Replies: 4
    Last Post: 26th June 2009, 10:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.