AyaKoshigaya
29th March 2011, 15:13
Hi,
i am using QDomDocument to parse our XMLFiles - works nice and fast, except one big problem.
Some of the xml files are using invalid syntax in attributes like this:
<xml>
<node someAttribute="this is <b>text</b>" />
</xml>
As you can see there are "<" and ">" in the attribute-value. Our old xml parser had no problems with this since it's in quotes.
I can't change all the xml files by hand because we get a ton of them every day from our customers. So.. does anyone have any idea how I can solve this problem?
QDomDocument doesn't work with this.. it just stops reading the xml at the first node with a "<" in the attribute-value :(
Thanks,
Aya
i am using QDomDocument to parse our XMLFiles - works nice and fast, except one big problem.
Some of the xml files are using invalid syntax in attributes like this:
<xml>
<node someAttribute="this is <b>text</b>" />
</xml>
As you can see there are "<" and ">" in the attribute-value. Our old xml parser had no problems with this since it's in quotes.
I can't change all the xml files by hand because we get a ton of them every day from our customers. So.. does anyone have any idea how I can solve this problem?
QDomDocument doesn't work with this.. it just stops reading the xml at the first node with a "<" in the attribute-value :(
Thanks,
Aya