net.sf.saxon.event
public class XMLIndenter extends ProxyReceiver
Constructor Summary | |
---|---|
XMLIndenter()
Create an XML Indenter |
Method Summary | |
---|---|
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
Output an attribute |
void | characters(CharSequence chars, int locationId, int properties)
Output character data |
void | comment(CharSequence chars, int locationId, int properties)
Output a comment |
void | endElement()
Output element end tag |
void | open()
Start of document |
void | processingInstruction(String target, CharSequence data, int locationId, int properties)
Output a processing instruction |
void | setOutputProperties(Properties props)
Set the properties for this indenter |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
Output element start tag |
boolean | usesTypeAnnotations()
Ask whether this Receiver (or the downstream pipeline) makes any use of the type annotations
supplied on element and attribute events |
Parameters: props the serialization properties
Returns: true if the Receiver makes any use of this information. If false, the caller may supply untyped nodes instead of supplying the type annotation