Closed kzys closed 13 years ago
Hmm, I'm not entirely comfortable with two aspects of this:
fromInputSource
SAXParser
Instead of this, what if we made NodeSeqSAXHandler
part of the public API? This would allow you to use it with an arbitrary parse interface which can produce SAX events.
A more specific approach would be to add a HTMLParser
to the Anti-XML library. I'm not particularly averse to that, though it does mean some interesting dependency issues.
Thank you. If I can use NodeSeqSAXHandler
as the public API, it's great for my purpose.
And I think, HTMLParser
is too specific. Anti-XML's approach is very interesting. Then I want to open the possibility for other parsers.
Done in 30f4fce. Thanks for all the feedback!
Hi Daniel,
I want to use anti-xml on a HTML document. Then I've added a method to switch a parser. With my patch, we can use anti-xml with the Validator.nu HTML5 parser.