IXmlNode interface

Applies to Windows and Windows Phone

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.

Syntax


public interface IXmlNode : IXmlNodeSelector, 
    IXmlNodeSerializer

Attributes

[Version(0x06020000)]

Members

The IXmlNode interface has these types of members:

Methods

The IXmlNode interface has these methods. It also inherits methods from the Object class.

MethodDescription
AppendChild Appends a new child node as the last child of the node.
CloneNode Clones a new node.
HasChildNodes Determines whether a node has children.
InsertBefore 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 Removes the specified child node from the list of children and returns it.
ReplaceChild Replaces the specified old child node with the supplied new child node.

 

Properties

The IXmlNode interface has these properties.

PropertyAccess typeDescription

Attributes

Read-onlyGets the list of attributes of this node.

ChildNodes

Read-onlyGets a list of children in the current node.

FirstChild

Read-onlyGets the first child node.

LastChild

Read-onlyGets the last child node.

LocalName

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

NamespaceUri

Read-onlyReturns the Uniform Resource Identifier (URI) for the namespace.

NextSibling

Read-onlyGets the next sibling of the node in the parent's child list.

NodeName

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

NodeType

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

NodeValue

Read/writeGets or sets the text associated with the node.

OwnerDocument

Read-onlyReturns the root of the document that contains the node.

ParentNode

Read-onlyGets the parent node of the node instance.

Prefix

Read/writeGets or sets the namespace prefix.

PreviousSibling

Read-onlyGets the previous sibling of the node in the parent's child list.

 

Remarks

Interface inheritance

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

IXmlNodeSelector
IXmlNodeSerializer

 

 

Show:
© 2014 Microsoft