Results 1 to 10 of 10

Thread: QXmlStreamReader and reading an XML with data on multiple lines

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QXmlStreamReader and reading an XML with data on multiple lines

    Does this give you a different result?
    Qt Code:
    1. if (m_XmlReader.isStartElement())
    2. {
    3. if (m_XmlReader.name() == "coordinates")
    4. {
    5. QString coordinateList= m_XmlReader.readElementText();
    6. // do stuff
    7. }
    8. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    May 2012
    Posts
    37
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Re: QXmlStreamReader and reading an XML with data on multiple lines

    Not really. I moved from reading and parsing the xml myself to using libkml. Makes more sense anyway. Thanks for the help though.

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. QXmlStreamReader not reading text within tags
    By Ceaser88 in forum Newbie
    Replies: 2
    Last Post: 24th July 2011, 10:06
  3. Replies: 0
    Last Post: 26th May 2010, 19:01
  4. Replies: 3
    Last Post: 3rd April 2010, 20:35
  5. Reading non-ASCII lines from QTcpSocket via readLine()
    By joshtn in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2008, 23:52

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.