public interface XmlActor
These methods directly correlate to those in
ContentHandler. This is primarily intended to be a
simplified version of that interface. It does not handle such advanced XML
trickery as namespaces, external entities, etc. It automatically combines
character data for you and presents it as a string; this has the unfortunate
side effect of limiting character data to 65535 characters (the maximum size
of a Java String). If you need something more sophisticated, by all means
just use the org.xml.sax framework directly.
Most methods allow you to throw any exception you like; these are then
wrapped as SAXExceptions, which are logged by the XMLParser and cause parsing
to halt.
NOTE This class has been ported to the Partner Platform v5 API and will soon be deprecated.
Copyright 2006 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(java.lang.String name,
java.lang.String characterData)
Called when a closing tag is encounterd, ending an element.
|
void |
startElement(java.lang.String name,
org.xml.sax.Attributes attributes)
Called when an opening tag is encountered, starting an element.
|
void startElement(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
name - qName of elementattributes - attributes listed in the tagjava.lang.Exception - if anything bad happens (this stops the parsing)void endElement(java.lang.String name,
java.lang.String characterData)
throws java.lang.Exception
name - qName of elementcharacterData - any character data encounteredjava.lang.Exception - if anything bad happens (this stops the parsing)