Hi to all!
I see a strange behaviour when reading and writing XML-Files to and from an QDomDocument.
What i do is:
I read a given XML-File which starts with <?xml version="1.0" encoding="iso-8859-1"?> using the QDomDocument.setContent(QFile.....
Then i do some modifications in the QDomDocument (not necessary to reproduce the behaviour)
Last i write it out with Stream << QDomDocument.toString(2)
What i see is that the double quotes in the xml-Declaration (<?xml version="1.0" encoding="iso-8859-1"?>) change in single quotes.
Anyone any idea where to look for the error?
Mick


Reply With Quote

Both types of quotes are valid quotes in XML so unless you are working with a broken parser that does not accept sngle quotes, there is no need to worry.

Bookmarks