
nu.validator.saxtree.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of htmlparser Show documentation
Show all versions of htmlparser Show documentation
The Validator.nu HTML Parser is an implementation of the HTML5 parsing algorithm in Java for applications. The parser is designed to work as a drop-in replacement for the XML parser in applications that already support XHTML 1.x content with an XML parser and use SAX, DOM or XOM to interface with the parser.
The newest version!
Package Overview
This package provides SAX Tree: a tree model optimized for creation from SAX
events and replay as SAX events.
Design Principles
- Preserve information exposed through
ContentHandler
,
LexicalHandler
and Locator
.
- Creation from SAX events or as part of the parse of a conforming
HTML5 document should be fast.
- Emitting SAX events based on the tree should be fast.
- Mutations should be possible but should not make the above
"fast" cases slower.
- Concurrent reads should work without locking when there are no
concurrent mutations.
- The user of the API has the responsibility of using the API properly:
for the sake of performance, the model does not check if it is being
used properly. Improper use may, therefore, put the model in and
inconsistent state.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy