|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The event-handling interface for the high-performance validating
XML parser. Start and end events are delivered for each element
that appears in the document being processed, unless the element is
within an ANY content model. Single-tag empty
elements (e.g., <foo/>) are effectively expanded
into dual-tag empty elements (e.g.,
<foo></foo>). The order in which events
are delivered reflects the order of information in the document.
$Log: XmlHandler.java,v $ Revision 1.1 2003/03/17 14:26:44 gjanee Initial revision
| Method Summary | |
void |
characters(char[] string,
int start,
int length)
Called to receive (a fragment of) #PCDATA textual
content. |
void |
endElement(int elementCode)
Called at the end of an element: after the element's end tag, but before subsequent content in the document. |
void |
startElement(int elementCode,
java.lang.String[] attributes)
Called at the beginning of an element: after the element's start tag and any attributes, but before the element's content. |
| Method Detail |
public void startElement(int elementCode,
java.lang.String[] attributes)
throws XmlException
elementCode - The element's code.attributes - Element attribute values, indexed by attribute code. All of
the element's declared attributes are represented in the array;
attributes for which a value is specified in the document or
for which there is a DTD-specified default have
non-null values. The handler should reference the
array for the duration of the call only, as it is reused by the
parser. Also, the array may be longer than necessary.
XmlException - If any error occurs.
public void endElement(int elementCode)
throws XmlException
elementCode - The element's code.
XmlException - If any error occurs.
public void characters(char[] string,
int start,
int length)
throws XmlException
#PCDATA textual
content.
string - The textual content.start - The index in string at which the textual content
starts.length - The length of the content.
XmlException - If any error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||