DOMWriter is a Receiver that attaches the result tree to a specified Node in a DOM Document
attribute
public void attribute(int nameCode,
int typeCode,
CharSequence value,
int locationId,
int properties)
throws XPathException
- attribute in interface Receiver
close
public void close()
End of the document.
- close in interface Receiver
comment
public void comment(CharSequence chars,
int locationId,
int properties)
throws XPathException
Handle a comment.
- comment in interface Receiver
getSystemId
public String getSystemId()
Get the system identifier that was set with setSystemId.
- The system identifier that was set with setSystemId,
or null if setSystemId was not called.
open
public void open()
Start of the document.
- open in interface Receiver
processingInstruction
public void processingInstruction(String target,
CharSequence data,
int locationId,
int properties)
throws XPathException
Handle a processing instruction.
- processingInstruction in interface Receiver
setNode
public void setNode(Node node)
Set output destination
node
- the node to which the new subtree will be attached
setSystemId
public void setSystemId(String systemId)
Set the System ID of the destination tree
- setSystemId in interface Receiver
setUnparsedEntity
public void setUnparsedEntity(String name,
String systemID,
String publicID)
throws XPathException
Notify an unparsed entity URI.
- setUnparsedEntity in interface Receiver
name
- The name of the unparsed entitysystemID
- The system identifier of the unparsed entitypublicID
- The public identifier of the unparsed entity
startElement
public void startElement(int nameCode,
int typeCode,
int locationId,
int properties)
throws XPathException
Start of an element.
- startElement in interface Receiver