I\'d like to use Qt to parse a non-well formed XML document of the form:
//lots of data
//more data
Create a skeleton document wrapper.xml:
<!DOCTYPE wrapper [
<!ENTITY e SYSTEM "real.xml">
]>
<wrapper>&e;</wrapper>
where real.xml is the XML fragment you actually want to read; then point your XML parser at wrapper.xml.
Just add a <root>
before it and a </root>
after it, and you have a valid XML document.