public interface IXMLIterationHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onCDATA(String sText)
CDATA node.
|
void |
onComment(String sComment)
Comment node.
|
void |
onContentElementWhitespace(CharSequence aWhitespaces)
Ignorable whitespace characters.
|
void |
onDocumentStart(EXMLVersion eVersion,
String sEncoding,
boolean bStandalone)
At the very beginning of the document.
|
void |
onDocumentType(String sQualifiedElementName,
String sPublicID,
String sSystemID)
On XML document type.
|
void |
onElementEnd(String sNamespacePrefix,
String sTagName,
boolean bHasChildren)
End of an element.
|
void |
onElementStart(String sNamespacePrefix,
String sTagName,
Map<String,String> aAttrs,
boolean bHasChildren)
Start of an element.
|
void |
onEntityReference(String sEntityRef)
On entity reference.
|
void |
onProcessingInstruction(String sTarget,
String sData)
On processing instruction
|
void |
onText(String sText,
boolean bEscape)
Text node.
|
void onDocumentStart(@Nullable EXMLVersion eVersion, @Nullable String sEncoding, boolean bStandalone)
eVersion - The XML version to use. If null is passed,
EXMLVersion.DEFAULT will be used.sEncoding - The encoding to be used for this document. It may be
null but it is strongly recommended to write a correct
charset.bStandalone - if true this is a standalone XML document without a
connection to an existing DTD or XML schemavoid onDocumentType(@Nonnull String sQualifiedElementName, @Nullable String sPublicID, @Nullable String sSystemID)
sQualifiedElementName - Qualified name of the root element.sPublicID - Document type public IDsSystemID - Document type system IDvoid onProcessingInstruction(@Nonnull String sTarget, @Nullable String sData)
sTarget - The targetsData - The data (attributes as a string)void onEntityReference(@Nonnull String sEntityRef)
sEntityRef - The reference (without '&' and ';' !!)void onContentElementWhitespace(@Nullable CharSequence aWhitespaces)
aWhitespaces - The whitespace character sequencevoid onComment(@Nullable String sComment)
sComment - The comment textvoid onText(@Nullable String sText, boolean bEscape)
sText - The contained textbEscape - If true the text should be XML masked,
false if not. The false case is especially
interesting for HTML inline JS and CSS code.void onElementStart(@Nullable String sNamespacePrefix, @Nonnull String sTagName, @Nullable Map<String,String> aAttrs, boolean bHasChildren)
sNamespacePrefix - Optional namespace prefix. May be null.sTagName - Tag nameaAttrs - Optional set of attributes.bHasChildren - true if the current element has childrenCopyright © 2006–2014 phloc systems. All rights reserved.