Results 1 to 7 of 7

Thread: Format XML file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2012
    Posts
    9
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Format XML file

    I have a xml file where outputs are not getting formatted . That means all the outputs are in a single line but i want to break it tag by tag .

    For e.g. -

    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8" standalone="no" ?><Analyser> <JointDetails> <Details><StdThickness> T </StdThickness><Thickness_num> 0.032 </Thickness_num></Details> </JointDetails></Analyser>
    To copy to clipboard, switch view to plain text mode 

    But i want to do it like this ::

    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    2. <Analyser>
    3. <JointDetails>
    4. <Details>
    5. <StdThickness> T </StdThickness>
    6. <Thickness_num> 0.032 </Thickness_num>
    7. </Details>
    8. </JointDetails>
    9. </Analyser>
    To copy to clipboard, switch view to plain text mode 

    Please dont suggest to do it while writting the XML file because this xml file is already there but now i have to format it as mentioned above .

    Thanks in advance .
    Last edited by vikuseth; 19th December 2012 at 06:37.

Similar Threads

  1. Replies: 5
    Last Post: 1st June 2011, 08:28
  2. Replies: 0
    Last Post: 21st July 2010, 10:32
  3. read the file which has the format of odp!
    By sunnysun520 in forum Qt Programming
    Replies: 11
    Last Post: 14th May 2009, 15:14
  4. QImage, get file format
    By greenvirag in forum Qt Programming
    Replies: 6
    Last Post: 29th December 2008, 13:13
  5. QSettings, my own format of config-file
    By IPFreely in forum Qt Programming
    Replies: 2
    Last Post: 14th November 2007, 20:07

Tags for this Thread

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.