org.castor.xmlctf.xmldiff.xml
Class XMLContentHandler
java.lang.Object
org.castor.xmlctf.xmldiff.xml.XMLContentHandler
- ContentHandler
public class XMLContentHandler
extends java.lang.Object
implements ContentHandler
A ContentHandler implementation that builds a tree of XMLNodes.
$Revision: 0000 $ $Date: 2007-01-11 00:00:00 -0600 (Thu, 11 Jan 2007) $
void | characters(char[] chars, int start, int length) - Creates a new text node from incoming characters.
|
void | endDocument() - Signals the end of the document.
|
void | endElement(String uri, String name, String qName) - Signals the end of an Element.
|
void | endPrefixMapping(String prefix) - Signals the end of prefix mapping.
|
Root | getRoot() - Returns the Root node.
|
void | ignorableWhitespace(char[] chars, int start, int length) - Ignores ignorable whitespace.
|
void | processingInstruction(String target, String data) - Creates a new Processing Instruction node.
|
void | setDocumentLocator(Locator locator) - Configures the Locator we will use.
|
void | skippedEntity(String name) - Gives notification about a skipped Entity during XML parsing.
|
void | startDocument() - Signals the beginning of the document.
|
void | startElement(String uri, String name, String qName, Attributes atts) - Signals the beginning of an Element node.
|
void | startPrefixMapping(String prefix, String uri) - Begins the scope of a prefix-URI Namespace mapping.
|
XMLContentHandler
public XMLContentHandler()
Creates a new XMLBuilder.
characters
public void characters(char[] chars,
int start,
int length)
throws SAXException
Creates a new text node from incoming characters.
chars
- The character array containing the XML contentstart
- First index of character for our new Text nodelength
- count of characters for our Text node.
endDocument
public void endDocument()
throws SAXException
Signals the end of the document.
endElement
public void endElement(String uri,
String name,
String qName)
throws SAXException
Signals the end of an Element.
uri
- The namespace URIname
- the local name of the element.qName
- the qualified naem of the element
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
Signals the end of prefix mapping.
prefix
- The namespace prefix mapping that is ending
getRoot
public Root getRoot()
Returns the Root node.
ignorableWhitespace
public void ignorableWhitespace(char[] chars,
int start,
int length)
throws SAXException
Ignores ignorable whitespace.
chars
- The character array containing the XML contentstart
- First index of the ignorable whitespacelength
- count of characters for the ignorable whitespace
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
Creates a new Processing Instruction node.
target
- the target of the processing instructiondata
- the content of the processing instruction
setDocumentLocator
public void setDocumentLocator(Locator locator)
Configures the Locator we will use.
locator
- the Locator used by this DocumentHandler.
skippedEntity
public void skippedEntity(String name)
Gives notification about a skipped Entity during XML parsing.
name
- the name of the skipped entity.
startDocument
public void startDocument()
throws SAXException
Signals the beginning of the document.
startElement
public void startElement(String uri,
String name,
String qName,
Attributes atts)
throws SAXException
Signals the beginning of an Element node.
uri
- The namespace URIname
- the local name of the element.qName
- the qualified naem of the elementatts
- a list of attributes for this Element
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
Begins the scope of a prefix-URI Namespace mapping.
prefix
- The namespace prefix mapping that is endinguri
- The namespace URI
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com