lovettchris / SgmlReader

SgmlReader is a .NET library that is handy for converting SGML content (like HTML and OFX) into well formed XML via XmlReader, XmlDocument, XDocument or XPathDocument. It runs on Windows and Linux using Mono.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature suggestion: SgmlDtd.Parse should consume any outer `<!DOCTYPE` and `]>`.

daiplusplus opened this issue · comments

commented

From #13

The SgmlDtd.Parse() method should detect if the TextReader input starts at a <!DOCTYPE token, and if so, consume it - then read the rest of the DTD body, and then consume the trailing ]> if it started with <!DOCTYPE.

is now fixed in 1.8.24

commented

Oooh, thanks! Saves me the trouble :)

cool, hope it works :-) Let me know if you find any bugs, thanks.