Saxon.Api

Class DocumentBuilder

Class DomDestination

Class DynamicContext

Class DynamicError

Class EmptyEnumerator

Class ExtensionFunctionCall

Class ExtensionFunctionDefinition

Class InvalidityHandlerWrapper

Class NamespaceConstant

Class NullDestination

Class Processor

Class QName

Class SchemaManager

Class SchemaValidator

Class Serializer

Class StandardLogger

Class StaticContext

Class StaticError

Class TextWriterDestination

Class XPathCompiler

Class XPathExecutable

Class XPathSelector

Class XQueryCompiler

Class XQueryEvaluator

Class XQueryExecutable

Class XdmAnyFunctionType

Class XdmAnyItemType

Class XdmAnyNodeType

Class XdmAtomicType

Class XdmAtomicValue

Class XdmDestination

  - Class TreeProtector

Class XdmEmptySequence

Class XdmFunctionItem

Class XdmItem

Class XdmItemType

Class XdmNode

Class XdmNodeKind

Class XdmSequenceType

Class XdmValue

Class XmlDestination

Class Xslt30Transformer

Class XsltCompiler

Class XsltExecutable

  - Class ParameterDetails

Class XsltPackage

Class XsltTransformer

Enum RecoveryPolicy

Enum SchemaValidationMode

Enum TreeModel

Enum WhitespacePolicy

Enum XdmAxis

Interface IInvalidityHandler

Interface IMessageListener

Interface IQueryResolver

Interface IResultDocumentHandler

Interface IXdmEnumerator

Interface IXmlLocation

Interface SchemaResolver

 

Saxon.Api
Class DomDestination


public class DomDestination
extends XmlDestination

A DomDestination represents an XmlDocument that is constructed to hold the output of a query or transformation.

No data needs to be supplied to the DomDestination object. The query or transformation populates an XmlDocument, which may then be retrieved as the value of the XmlDocument property


Constructor Summary
DomDestination()

Construct a DomDestination

DomDestination(System.Xml.XmlDocument attachmentPoint)

Construct a DomDestination based on an existing Document node.

DomDestination(System.Xml.XmlDocumentFragment attachmentPoint)

Construct a DomDestination based on an existing DocumentFragment node.

DomDestination(System.Xml.XmlElement attachmentPoint)

Construct a DomDestination based on an existing Element node.

 
Property Summary
 XmlDocument XmlDocument

After construction, retrieve the constructed document node

 
Method Summary
 net.sf.saxon.event.Receiver GetReceiver(net.sf.saxon.event.PipelineConfiguration pipe)

Return a Receiver. Saxon calls this method to obtain a Receiver, to which it then sends a sequence of events representing the content of an XML document.

 net.sf.saxon.event.Receiver GetReceiver(net.sf.saxon.Configuration config)

Gets the receiver.

 
Constructor Detail

DomDestination

public DomDestination()

Construct a DomDestination

With this constructor, the system will create a new DOM Document to act as the destination of the query or transformation results. The document node of the new document may be retrieved via the XmlDocument property.


DomDestination

public DomDestination(System.Xml.XmlDocument attachmentPoint)

Construct a DomDestination based on an existing Document node.

The new data will be added as a child of the supplied node.

Parameters:
attachmentPoint -
The document node to which new contents will be attached. To ensure that the new document is well-formed, this document node should have no existing children.

DomDestination

public DomDestination(System.Xml.XmlDocumentFragment attachmentPoint)

Construct a DomDestination based on an existing DocumentFragment node.

The new data will be added as a child of the supplied node.

Parameters:
attachmentPoint -
The document fragment node to which new contents will be attached. The new contents will be added after any existing children.

DomDestination

public DomDestination(System.Xml.XmlElement attachmentPoint)

Construct a DomDestination based on an existing Element node.

The new data will be added as a child of the supplied element node.

Parameters:
attachmentPoint -
The element node to which new contents will be attached. The new contents will be added after any existing children.

Property Detail

XmlDocument

public XmlDocument XmlDocument {get; }

After construction, retrieve the constructed document node

If the zero-argument constructor was used, this will be a newly constructed document node. If the constructor supplied a document node, the same document node will be returned. If the constructor supplied a document fragment node or an element node, this method returns the OwnerDocument property of that node.


Method Detail

GetReceiver

public override net.sf.saxon.event.Receiver GetReceiver(net.sf.saxon.event.PipelineConfiguration pipe)

Return a Receiver. Saxon calls this method to obtain a Receiver, to which it then sends a sequence of events representing the content of an XML document.

Parameters:
pipe -
Pipe. The Saxon pipeline configuration. This is supplied so that the destination can use information from the PipelineConfiguration (for example, a reference to the name pool) to construct or configure the returned Receiver.
Returns:
The receiver.

GetReceiver

public net.sf.saxon.event.Receiver GetReceiver(net.sf.saxon.Configuration config)

Gets the receiver.

Parameters:
config -
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.
Returns:
The receiver.