|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
SAX like interface for call backs from XMLFragmentParser.
Implenent this interface and register it to XMLFragmentParser
to receive events parsed XML. You can also inherit from
DefaultXMLFragmentHandler for convenience.
| Method Summary | |
void |
cdata(String cdata)
Receives notification of character data. |
void |
comment(String comment)
Receives notification of a comment. |
void |
doctype(String rootElement,
String pubId,
String sysId,
String internalDTD)
Receives notification of the document type declaration of the XML document. |
void |
emptyElement(String name,
AttributesImpl attributes)
Receives notification of the empty element. |
void |
endElement(String name)
Receives notification of the end of an element. |
void |
endFragment()
Receives notification of the end of a fragment. |
void |
pcdata(String pcdata)
Receives notification of parseable character data. |
void |
pi(String target,
AttributesImpl attributes)
Receives notification of a processing instruction. |
void |
startElement(String name,
AttributesImpl attributes)
Receives notification of the beginning of an element. |
void |
startFragment()
Receives notification of the beginning of a fragment. |
void |
xmlDeclaration(String target,
AttributesImpl attributes)
Receives notification of the XML declaration. |
| Method Detail |
public void xmlDeclaration(String target,
AttributesImpl attributes)
target - xml or XMLattributes - all additional information for this
declaration (as version, encoding) put into
attribtues as name/value pairs
public void doctype(String rootElement,
String pubId,
String sysId,
String internalDTD)
rootElement - the root element of the XML documentpubId - the public id of the DTD or null
if there is nonesysId - the system id of the DTD or null
if there is noneinternalDTD - the internal DTD or null
if there is none; it will be notified as a single completely
unparsed text blockpublic void startFragment()
public void endFragment()
public void startElement(String name,
AttributesImpl attributes)
name - the full name of this elementattributes - the attributes associated with this elementemptyElement(java.lang.String, org.xml.sax.helpers.AttributesImpl),
endElement(java.lang.String)
public void emptyElement(String name,
AttributesImpl attributes)
<empty/> will
create this notification while <empty></empty> will
call startElement(java.lang.String, org.xml.sax.helpers.AttributesImpl) followed endElement(java.lang.String).
name - the full name of this elementattributes - the attributes associated with this elementstartElement(java.lang.String, org.xml.sax.helpers.AttributesImpl),
endElement(java.lang.String)public void endElement(String name)
emptyElement(java.lang.String, org.xml.sax.helpers.AttributesImpl) before.
name - the full name of this elementemptyElement(java.lang.String, org.xml.sax.helpers.AttributesImpl),
startElement(java.lang.String, org.xml.sax.helpers.AttributesImpl)public void pcdata(String pcdata)
XMLFragmentParser has no means to identify
ignorable whitespace, it will be notified here as well.
pcdata - parseable character data from XML documentpublic void cdata(String cdata)
public void pi(String target,
AttributesImpl attributes)
target - identifies the application or purpose this PI is forattributes - all additional information for this PI put into
attribtues as name/value pairspublic void comment(String comment)
comment - the text of the comment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||