|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.templating.html.XHTMLParser
A SAX-based implementation of HTMLParser. Only good for parsing
XHTML. One way to ensure that the incoming text is a valid XHTML fragment is
to use a JTidy-based validation listener.
| Constructor Summary | |
XHTMLParser()
|
|
| Method Summary | |
boolean |
isRegistered(String qName)
Checks if the tag is registered with this parser. |
void |
parse(String html,
ContentHandler handler)
Parses the html by invoking a SAX parser. |
void |
registerTag(String qName)
Registers the tag qName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XHTMLParser()
throws HTMLParserException
| Method Detail |
public void registerTag(String qName)
HTMLParserqName.
registerTag in interface HTMLParserpublic boolean isRegistered(String qName)
HTMLParser
isRegistered in interface HTMLParser
public void parse(String html,
ContentHandler handler)
throws HTMLParserException
html by invoking a SAX parser. The assumption is,
of course, that html is well-formed.
parse in interface HTMLParserHTMLParserException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||