Results 1 to 2 of 2

Thread: Read XML error

  1. #1
    Join Date
    Apr 2009
    Location
    China
    Posts
    127
    Thanks
    30
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Read XML error

    Hi, I have save some date in an XML file using DOM. But when I try to read from the file, the QDomDocument::setContent(QFile)always return false. The following is what my xml file contains:
    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <easygo>
    3. <1>H:/qtapplication/easygo/debug/easygo.exe</1>
    4. <1>H:/qtapplication/easygo/debug/easygo.o</1>
    5. <1>H:/qtapplication/easygo/debug/main.o</1>
    6. <2>D:/Program Files/Vim/vim72/gvim.exe</2>
    7. <2>H:/qtapplication/easygo/debug/moc_easygo.cpp</2>
    8. <2>H:/qtapplication/easygo/debug/moc_easygo.o</2>
    9. </easygo>
    To copy to clipboard, switch view to plain text mode 

    Any idea appreciated!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Read XML error

    Tag names cannot start with a number or punctuation character! That's no valid XML

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31

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.