|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.html.parsers.HTMLDocBuilder
Class used by HTML parser to build a DOM.
The document builder functions assume they are being called in the order the document is parsed. They keep a current node where new child nodes are appended.
Constructor Summary | |
HTMLDocBuilder(XMLCDomFactory domFactory,
InputSource input)
Constructor. |
Method Summary | |
void |
addAttribute(String name,
String value)
Add an attribute to the element on the top of the stack. |
void |
addComment(String data)
Add a Comment node. |
void |
addTextNode(String data)
Add a Text node. |
void |
finishElement()
Finish the element being constructed. |
void |
fixUnrecognizedTagNesting(String tagName)
Used to correct nesting when handling an unknown tag. |
Node |
getCurrentNode()
Get the node on the top of the stack during parsing. |
XMLCDocument |
getXMLCDocument()
Get the XMLC document associated with this object. |
void |
popCurrentNode()
Pop the current node off of the stack. |
void |
startElement(String tagName)
Start a new Element. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public HTMLDocBuilder(XMLCDomFactory domFactory, InputSource input) throws XMLCException
Method Detail |
public XMLCDocument getXMLCDocument()
public void startElement(String tagName)
public void addAttribute(String name, String value)
public void finishElement()
public void addTextNode(String data)
Text
node.public void addComment(String data)
Comment
node.public Node getCurrentNode()
public void popCurrentNode()
public void fixUnrecognizedTagNesting(String tagName) throws XMLCException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |