public class XMLTreeHandler extends DefaultHandler2
| Constructor and Description |
|---|
XMLTreeHandler(URL url)
Constructor.
|
XMLTreeHandler(URL url,
String encoding)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] characters,
int start,
int length) |
void |
endElement(String uri,
String localname,
String qname) |
XMLRoot |
getRoot()
Return the root node.
|
List<URL> |
getStylesheets()
Return the stylesheets.
|
void |
processingInstruction(String target,
String data) |
void |
startElement(String uri,
String localname,
String qname,
Attributes attr)
Receive notification of the beginning of an element.
|
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntityendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic XMLTreeHandler(URL url)
url - the URL of the documentpublic XMLRoot getRoot()
public void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlerSAXExceptionpublic void startElement(String uri, String localname, String qname, Attributes attr) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - the Namespace URIlocalname - the local name (without prefix), or the empty string if Namespace processing is not being performedqname - The qualified name (with prefix), or the empty string if qualified names are not availableattr - the specified or defaulted attributesSAXExceptionpublic void endElement(String uri, String localname, String qname)
endElement in interface ContentHandlerendElement in class DefaultHandlerpublic void characters(char[] characters,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerCopyright © 2026. All rights reserved.