The ContentHandler interface defines the events for the content of the document. To register for content- related events, applications must implement this interface. The events are as follows :
void setDocumentLocator(Locator locator) ”Optionally called by the parser before any other event to pass a locator to the event handler
void startDocument() / void endDocument() ”Start/end of document
void startPrefixMapping(String prefix,String uri) / void endPrefixMapping(String prefix) ”Start/end of scope for prefix mapping when processing namespaces
void startElement(String namespaceURI,String localName,String qName, Attributes atts) / void endElement(String namespaceURI,String localName, String qName) ”Start/end of element
void characters (char[] ch,int start,int length) ”Character data
void ignorableWhitespace(char ] ch,int start,int length) ”Ignorable whitespaces, as defined by the XML recommendation