tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

Cannot handle nested DTD nodes

Open yleydier opened this issue 12 years ago • 1 comments

Tinyxml2 does not read the following file properly.

%Menota_entities; %BFMMSS_entities; ] >

<TEI> </TEI>

It finds:

  • a declaration: __
  • an unknown: **_DOCTYPE TEI [
  • a text _%Menota_entities;_
  • a second unknown: _ENTITY % BFMMSS_entities SYSTEM 'bfmmss.ent'_
  • another text _%BFMMSS_entities; ] &gt;_
  • the element _TEI_

I'm not expecting Tinyxml to expand the entities, but it seems that the nesting of DTD nodes is not suppored, which is quite critical.

I looked at the code to try to fix it but the solution does not seem to be trivial. Is there any way to fix this?

yleydier avatar May 16 '13 16:05 yleydier

I think they could be parsed much in the same way CDATA segments are. Marking as enhancement.

leethomason avatar May 19 '13 04:05 leethomason