Methods Summary |
---|
public void | characters(char[] ch, int start, int length)
String characters = new String(ch, start, length);
if (characters.trim().length() == 0) {
return;
}
Text text = getInitializedDocument().createTextNode(characters);
Node parentNode = (Node)nodes.peek();
parentNode.appendChild(text);
|
public void | endDocument()
nodes.pop();
|
public void | endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
nodes.pop();
|
public void | endPrefixMapping(java.lang.String prefix)
|
public org.w3c.dom.Document | getDocument()
return document;
|
public org.w3c.dom.Document | getInitializedDocument()
if (document == null) {
try {
document = xmlPlatform.createDocument();
nodes.push(document);
} catch (Exception e) {
throw new SAXException(e);
}
}
return document;
|
public void | ignorableWhitespace(char[] ch, int start, int length)
|
public void | processingInstruction(java.lang.String target, java.lang.String data)
ProcessingInstruction pi = getInitializedDocument().createProcessingInstruction(target, data);
Node parentNode = (Node)nodes.peek();
parentNode.appendChild(pi);
|
public void | setDocumentLocator(org.xml.sax.Locator locator)
|
public void | skippedEntity(java.lang.String name)
|
public void | startDocument()
try {
document = xmlPlatform.createDocument();
nodes.push(document);
} catch (Exception e) {
throw new SAXException(e);
}
|
public void | startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
if ((null != namespaceURI) && ("".equals(namespaceURI))) {
namespaceURI = null;
}
Element element = getInitializedDocument().createElementNS(namespaceURI, qName);
Node parentNode = (Node)nodes.peek();
parentNode.appendChild(element);
nodes.push(element);
int numberOfAttributes = atts.getLength();
Attr attribute;
for (int x = 0; x < numberOfAttributes; x++) {
element.setAttributeNS(atts.getURI(x), atts.getQName(x), atts.getValue(x));
}
|
public void | startPrefixMapping(java.lang.String prefix, java.lang.String uri)
|