Share via


IXmlNode Interface

Definition

Contains information for the entire Document Object Model. This interface represents a single node in the document tree. While all objects that implement this interface expose methods for dealing with children, not all objects that implement this interface may have children.

public interface class IXmlNode : IXmlNodeSelector, IXmlNodeSerializer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(477371737, 8482, 18389, 168, 86, 131, 243, 212, 33, 72, 117)]
struct IXmlNode : IXmlNodeSelector, IXmlNodeSerializer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(477371737, 8482, 18389, 168, 86, 131, 243, 212, 33, 72, 117)]
public interface IXmlNode : IXmlNodeSelector, IXmlNodeSerializer
Public Interface IXmlNode
Implements IXmlNodeSelector, IXmlNodeSerializer
Derived
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Interface inheritance

IXmlNode inherits IXmlNodeSelector and IXmlNodeSerializer. Types that implement IXmlNode also implement the interface members of IXmlNodeSelector and IXmlNodeSerializer.

Properties

Attributes

Gets the list of attributes of this node.

ChildNodes

Gets a list of children in the current node.

FirstChild

Gets the first child node.

InnerText

Gets and sets the text from inside the XML.

(Inherited from IXmlNodeSerializer)
LastChild

Gets the last child node.

LocalName

Gets the local name, which is the local part of a qualified name. This is called the local part in Namespaces in XML.

NamespaceUri

Returns the Uniform Resource Identifier (URI) for the namespace.

NextSibling

Gets the next sibling of the node in the parent's child list.

NodeName

Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types.

NodeType

Gets the XML Document Object Model (DOM) node type, which determines valid values and whether the node can have child nodes.

NodeValue

Gets or sets the text associated with the node.

OwnerDocument

Returns the root of the document that contains the node.

ParentNode

Gets the parent node of the node instance.

Prefix

Gets or sets the namespace prefix.

PreviousSibling

Gets the previous sibling of the node in the parent's child list.

Methods

AppendChild(IXmlNode)

Appends a new child node as the last child of the node.

CloneNode(Boolean)

Clones a new node.

GetXml()

Returns the XML representation of the node and all its descendants.

(Inherited from IXmlNodeSerializer)
HasChildNodes()

Determines whether a node has children.

InsertBefore(IXmlNode, IXmlNode)

Inserts a child node to the left of the specified node, or at the end of the list.

Normalize()

Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node.

RemoveChild(IXmlNode)

Removes the specified child node from the list of children and returns it.

ReplaceChild(IXmlNode, IXmlNode)

Replaces the specified old child node with the supplied new child node.

SelectNodes(String)

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList.

(Inherited from IXmlNodeSelector)
SelectNodesNS(String, Object)

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList.

(Inherited from IXmlNodeSelector)
SelectSingleNode(String)

Applies the specified pattern-matching operation to this node's context and returns the first matching node.

(Inherited from IXmlNodeSelector)
SelectSingleNodeNS(String, Object)

Applies the specified pattern-matching operation to this node's context and returns the first matching node.

(Inherited from IXmlNodeSelector)

Applies to

See also