[Qt-interest] Why QXmlStreamReader reports XML content in a broken way?
Lingfa Yang
lingfa at brandeis.edu
Fri Jan 2 05:49:18 CET 2009
QXmlStreamReader users:
A normal XML element supposed to be reported as three Token:
StartElement, Characters, and EndElement.
But in this element:
<p>He said: "I'll come again."</p>
the content is reported four times:
1: "He said: "
2: ""I"
3: "'ll come again."
4: """
Does anyone know why QXmlStreamReader reports four times, instead of
one: “He said: "I'll come again."" ?
Does this design benefit, or make escaped characters detected easier?
Thanks,
Lingfa
More information about the Qt-interest-old
mailing list