Menu

#1 Parser aborts for unrecognized elements

open
5
2009-07-24
2009-01-23
No

I am using the parser to process MathML files. Within MathML, there are a large number of elements such as "&mathml;", "∑", "&ineq;", etc. which are not recognized by the QDParser. Any such unrecognized element causes an exception to be thrown, aborting the entire process. Would prefer that unrecognized elements such as these are simply handled (as ordinary strings?) and the parsing process allowed to complete.

Discussion

  • Pinner Blinn

    Pinner Blinn - 2009-01-23

    File that fails to be parsed by QDParser

     
  • Kevin Twidle

    Kevin Twidle - 2009-07-24

    This has problems when converting XML to a string. How are these entities to be treated? How does the parser know when to escape the & or when to keep it. However this is a useful idea and one of the uses of a DTD which this project does not use. I will look at registering a String array of entities that will be recognised. This will work for both reading and writing.

     
  • Kevin Twidle

    Kevin Twidle - 2009-07-24
    • labels: --> Change of operation
    • assigned_to: nobody --> luckyjim
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.