tinyxml2
tinyxml2 copied to clipboard
Cannot handle nested DTD nodes
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; ] >_
- 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?
I think they could be parsed much in the same way CDATA segments are. Marking as enhancement.