public class SimpleDOMBuilder
extends java.lang.Object
| Constructor and Description |
|---|
SimpleDOMBuilder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
characters(java.lang.String sText)
Add characters to the currentElement.
|
boolean |
endElement()
Set the current element to the parent of the current element
|
org.w3c.dom.Document |
getDOM()
Get the DOM tree
|
boolean |
setAttribute(java.lang.String sName,
java.lang.String sValue)
Set an attribute of the current element
|
boolean |
startElement(java.lang.String sTagName)
Append an element to the current element and set this new element to be the current element.
|
public boolean startElement(java.lang.String sTagName)
sTagName - public boolean endElement()
public boolean setAttribute(java.lang.String sName,
java.lang.String sValue)
sName - sValue - public boolean characters(java.lang.String sText)
startElement or endElement methods are invokedsText - public org.w3c.dom.Document getDOM()