0

I have XML file which include the following line:

<span class="page-normal" id="page_0007"><A href="bwxy0003.smil#page_0007" &gt;>4</A></span>

I have used QXmlStreamReader, QDomDocument, QXmlSimpleReader, libxml2 and pugixml, but all fail on this line and especially at the "&qt;"

Is there an XML parser who will work with this or another solution is possible?

Thanks for the help

pjwl
  • 21
  • 3
  • 1
    The line contains `>` but your explanation contains `&qt;`. Which is actually used? – MikeCAT Jan 05 '21 at 14:36
  • Also is this a valid XML? – MikeCAT Jan 05 '21 at 14:37
  • Your XML seems malformed. Why is the `>` there? `>` means the greater-than symbol (`>`). – JarMan Jan 05 '21 at 14:37
  • What is shown is not XML, it is HTML, or perhaps XHTML. Either way, it makes no sense for `>` to appear where it is, and having it appear there will break the syntax of XML/HTML, so it makes sense that an XML/HTML parser will fail on it. – Remy Lebeau Jan 05 '21 at 17:14
  • Sorry it is ">" I was wondering if one of the parser could ignore this and parse trough the xml.. – pjwl Jan 06 '21 at 09:56

0 Answers0