|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.SimpleXMLParserHandler
public class SimpleXMLParserHandler
An implementation of a XMLParserHandlerInterface. This will parse the XML document to a full XMLNode tree.
Constructor Summary | |
---|---|
SimpleXMLParserHandler()
|
Method Summary | |
---|---|
void |
characters(String str,
int start,
int length)
Called one or several times for each values of a node in the XML document. |
void |
endDocument()
Called in the end of the document when parsing has finished |
void |
endElement(String name)
Called once at the end of each node in the XML document. |
XMLNode |
getData()
Get the XMLNode tree that has been created during the parsing |
void |
startDocument()
Called in the beginning of the document before parsing starts |
void |
startElement(String name,
Map attributes)
Called once at the start of each node in the XML document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleXMLParserHandler()
Method Detail |
---|
public XMLNode getData()
public void startDocument()
XMLParserHandlerInterface
startDocument
in interface XMLParserHandlerInterface
public void endDocument()
XMLParserHandlerInterface
endDocument
in interface XMLParserHandlerInterface
public void startElement(String name, Map attributes)
XMLParserHandlerInterface
XMLParserHandlerInterface.characters(String,int,int)
startElement
in interface XMLParserHandlerInterface
name
- The name of the nodeattributes
- The attributes of the nodepublic void endElement(String name)
XMLParserHandlerInterface
endElement
in interface XMLParserHandlerInterface
name
- The name of the nodepublic void characters(String str, int start, int length)
XMLParserHandlerInterface
characters
in interface XMLParserHandlerInterface
str
- The String object containing the valuestart
- The start position of the valuelength
- The length of the value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |