Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot handle nested DTD nodes #113

Open
yleydier opened this issue May 16, 2013 · 1 comment
Open

Cannot handle nested DTD nodes #113

yleydier opened this issue May 16, 2013 · 1 comment

Comments

@yleydier
Copy link

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?

@leethomason
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants