You must have messed something up in your code. When I read text from an element, I get all the newlines and whitespaces.
You must have messed something up in your code. When I read text from an element, I get all the newlines and whitespaces.
Probably, though I'm not sure what I could be doing wrong. I'm using Qt 4.8.3 on Windows. Code snippet:
Qt Code:
if (m_XmlReader.isStartElement()) { m_XmlReader.readNext(); if (element == "coordinates") { } }To copy to clipboard, switch view to plain text mode
Last edited by Lykurg; 21st February 2013 at 08:24. Reason: changed [quote] to [code]
How did you open the file? And what did you do afterwards?
Does this give you a different result?
Qt Code:
if (m_XmlReader.isStartElement()) { if (m_XmlReader.name() == "coordinates") { // do stuff } }To copy to clipboard, switch view to plain text mode
Not really. I moved from reading and parsing the xml myself to using libkml. Makes more sense anyway. Thanks for the help though.
Bookmarks