Results 1 to 7 of 7

Thread: QXmlStreamReader

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: QXmlStreamReader

    If I remember right you need a single root element:
    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <dishes>
    3. <dish>...</dish>
    4. <dish>...</dish>
    5. <dish>...</dish>
    6. </dishes>
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to Lykurg for this useful post:

    sophister (15th June 2009)

  3. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QXmlStreamReader

    @Lykurg yes, you remember right (as usual ).
    @sophister, try to open your xml file with browser and you'll see an error.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

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

    Default Re: QXmlStreamReader

    Yes, it doesn't open the xml file but an error.
    Thank you both!!

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

    Default Re: QXmlStreamReader

    Thanks very much!!

Similar Threads

  1. Reading and rereading a file with QXmlStreamReader
    By TheRonin in forum Qt Programming
    Replies: 14
    Last Post: 30th April 2015, 14:04
  2. how QXmlStreamReader parse QString
    By SamSong in forum Qt Programming
    Replies: 2
    Last Post: 6th November 2009, 14:56
  3. QXmlStreamReader issue
    By yagabey in forum Qt Programming
    Replies: 11
    Last Post: 31st December 2008, 21:06
  4. QXmlStreamReader error on first line?
    By warry in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2008, 14:20
  5. QXmlStreamReader rewind
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 13th April 2008, 08:00

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
  •  
Qt is a trademark of The Qt Company.