XMLReader

   

ContentHandler

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

  • void processingInstruction(String target, String data) ”Processing instruction

  • void skippedEntity(String name ) ” Skipped entity

   


Applied XML Solutions
Applied XML Solutions
ISBN: 0672320541
EAN: 2147483647
Year: 1999
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net