FAQ

How does the parser deal with tags like <tag/> ?

The parser handles them as a normal Tag object. The Tag class has a method - isEmptyXmlTag() which can be queried to find if this an empty xml tag.

How does the parser deal with HTML tags which should be terminated with /> but are not, i.e.
and <HR>? Is there any way to automatically know that some HTML tags are empty?

How is JSP parsed using the HTMLParser?

How do you find the byte offset from the beginning of a document for a tag?

Last edited on Sunday, December 21, 2003 4:34:30 am.