public class DOMDestination extends Object implements Destination
Constructor and Description |
---|
DOMDestination(Node root)
Create a DOMDestination, supplying a node in a DOM document to which the
content of the result tree will be attached.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the destination, allowing resources to be released.
|
Receiver |
getReceiver(Configuration config)
Return a Receiver.
|
public DOMDestination(Node root)
root
- the root node for the new tree. This must be a document or element node.public Receiver getReceiver(Configuration config) throws SaxonApiException
getReceiver
in interface Destination
config
- The Saxon configuration. This is supplied so that the destination can
use information from the configuration (for example, a reference to the name pool)
to construct or configure the returned Receiver.SaxonApiException
- if the Receiver cannot be createdpublic void close() throws SaxonApiException
close
in interface Destination
SaxonApiException
- if any failure occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.