I am currently writing a parser for doxygen XML output. Partly for academic reasons and because the doxygen / addons / doxmlparser code is ancient.
I use QXmlStreamReader for XML parsing and cause errors in some attributes. For example, for doxygen, the following XML is generated:
... <listofallmembers> ... <member refid="qset_1operator&" prot="public" virt="non-virtual"><scope>libDatabase::Set</scope><name>operator&</name></member> ... </listofallmembers>
This is refid="qset_1operator&" , of course, the problem:
XmlStreamReaderError: Expected '#' or '[a-zA-Z]', but got '"'.
Other errors include the presence of <> characters (and others) in XML attributes.
I know that these characters should be replaced with their < , > etc.
How can I easily (and automatically, of course) fix XML when I cannot use the Qt classes to even look at XML?
source share