Interface IDefaultXmlHandler
public interface IDefaultXmlHandler
Interface for handling XML elements during SAX processing.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Called when character data is encountered within an element.void
endElement
(String uri, String localName, String qName) Called when an end element is encountered in the XML document.void
Called when a start element is encountered in the XML document.
-
Method Details
-
startElement
Called when a start element is encountered in the XML document.- Parameters:
-
uri
- the namespace URI of the element -
localName
- the local name of the element -
qName
- the qualified name of the element -
attributes
- a map of attributes associated with the element
-
endElement
Called when an end element is encountered in the XML document.- Parameters:
-
uri
- the namespace URI of the element -
localName
- the local name of the element -
qName
- the qualified name of the element
-
characters
void characters(char[] ch, int start, int length) Called when character data is encountered within an element.- Parameters:
-
ch
- the character array containing the data -
start
- the start index of the data in the array -
length
- the length of the data
-