Condividi tramite


DOMSource Constructors

Definition

Overloads

DOMSource()

Zero-argument default constructor.

DOMSource(INode)

Create a new input source with a DOM node.

DOMSource(INode, String)

Create a new input source with a DOM node, and with the system ID also passed in as the base URI.

DOMSource(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

DOMSource()

Zero-argument default constructor.

[Android.Runtime.Register(".ctor", "()V", "")]
public DOMSource ();
Attributes

Remarks

Zero-argument default constructor. If this constructor is used, and no DOM source is set using #setNode(Node node) , then the Transformer will create an empty source org.w3c.dom.Document using javax.xml.parsers.DocumentBuilder#newDocument().

Java documentation for javax.xml.transform.dom.DOMSource.DOMSource().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

  • <xref:Javax.Xml.Transform.Transformer.Transform(Javax.Xml.Transform.ISource%2c+Javax.Xml.Transform.IResult)>

Applies to

DOMSource(INode)

Create a new input source with a DOM node.

[Android.Runtime.Register(".ctor", "(Lorg/w3c/dom/Node;)V", "")]
public DOMSource (Org.W3c.Dom.INode? n);
[<Android.Runtime.Register(".ctor", "(Lorg/w3c/dom/Node;)V", "")>]
new Javax.Xml.Transform.Dom.DOMSource : Org.W3c.Dom.INode -> Javax.Xml.Transform.Dom.DOMSource

Parameters

n
INode

The DOM node that will contain the Source tree.

Attributes

Remarks

Create a new input source with a DOM node. The operation will be applied to the subtree rooted at this node. In XSLT, a "/" pattern still means the root of the tree (not the subtree), and the evaluation of global variables and parameters is done from the root node also.

Java documentation for javax.xml.transform.dom.DOMSource.DOMSource(org.w3c.dom.Node).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

DOMSource(INode, String)

Create a new input source with a DOM node, and with the system ID also passed in as the base URI.

[Android.Runtime.Register(".ctor", "(Lorg/w3c/dom/Node;Ljava/lang/String;)V", "")]
public DOMSource (Org.W3c.Dom.INode? node, string? systemID);
[<Android.Runtime.Register(".ctor", "(Lorg/w3c/dom/Node;Ljava/lang/String;)V", "")>]
new Javax.Xml.Transform.Dom.DOMSource : Org.W3c.Dom.INode * string -> Javax.Xml.Transform.Dom.DOMSource

Parameters

node
INode

The DOM node that will contain the Source tree.

systemID
String

Specifies the base URI associated with node.

Attributes

Remarks

Create a new input source with a DOM node, and with the system ID also passed in as the base URI.

Java documentation for javax.xml.transform.dom.DOMSource.DOMSource(org.w3c.dom.Node, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

DOMSource(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected DOMSource (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Xml.Transform.Dom.DOMSource : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Xml.Transform.Dom.DOMSource

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to