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

Failure with DOCTYPE referencing DTD #3

Closed
fwal opened this issue Jul 5, 2014 · 2 comments
Closed

Failure with DOCTYPE referencing DTD #3

fwal opened this issue Jul 5, 2014 · 2 comments

Comments

@fwal
Copy link

fwal commented Jul 5, 2014

Hi!

I'm having problem parsing xml files that contain a DOCTYPE that references to an external dtd.
The code below produce the following error: [:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、퟿豈-﷏ﷰ-�] expected at 2:2

Example:

var xmlData = '''<?xml version="1.0"?>
    <!DOCTYPE book SYSTEM "Book.dtd">
    <bookshelf>
      <book>
        <title lang="english">Growing a Language</title>
        <price>29.99</price>
      </book>
      <book>
        <title lang="english">Learning XML</title>
        <price>39.95</price>
      </book>
      <price>132.00</price>
    </bookshelf>''';

var doc = parse(xmlData);
@renggli
Copy link
Owner

renggli commented Jul 6, 2014

Thank you for reporting and the example. DOCTYPEs are not correctly read indeed.

I've added some more tests and fixed this in d50c5a0.

@renggli renggli closed this as completed Jul 6, 2014
@fwal
Copy link
Author

fwal commented Jul 9, 2014

Great! Thanks! 👍

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

No branches or pull requests

2 participants