<PackageReference Include="System.Xml.XmlDocument" Version="4.0.1-beta-23409" />

XmlNode

public abstract class XmlNode : IEnumerable
Represents a single node in the XML document.
public virtual XmlAttributeCollection Attributes { get; }

Gets an XmlAttributeCollection containing the attributes of this node.

public virtual string BaseURI { get; }

Gets the base URI of the current node.

public virtual XmlNodeList ChildNodes { get; }

Gets all the child nodes of the node.

public virtual XmlNode FirstChild { get; }

Gets the first child of the node.

public virtual bool HasChildNodes { get; }

Gets a value indicating whether this node has any child nodes.

public virtual string InnerText { get; set; }

Gets or sets the concatenated values of the node and all its child nodes.

public virtual string InnerXml { get; set; }

Gets or sets the markup representing only the child nodes of this node.

public virtual bool IsReadOnly { get; }

Gets a value indicating whether the node is read-only.

public virtual XmlElement this[string name] { get; }

Gets the first child element with the specified Name.

public virtual XmlElement this[string localname, string ns] { get; }

Gets the first child element with the specified LocalName and NamespaceURI.

public virtual XmlNode LastChild { get; }

Gets the last child of the node.

public abstract string LocalName { get; }

Gets the local name of the node, when overridden in a derived class.

public abstract string Name { get; }

Gets the qualified name of the node, when overridden in a derived class.

public virtual string NamespaceURI { get; }

Gets the namespace URI of this node.

public virtual XmlNode NextSibling { get; }

Gets the node immediately following this node.

public abstract XmlNodeType NodeType { get; }

Gets the type of the current node, when overridden in a derived class.

public virtual string OuterXml { get; }

Gets the markup containing this node and all its child nodes.

public virtual XmlDocument OwnerDocument { get; }

Gets the XmlDocument to which this node belongs.

public virtual XmlNode ParentNode { get; }

Gets the parent of this node (for nodes that can have parents).

public virtual string Prefix { get; set; }

Gets or sets the namespace prefix of this node.

public virtual XmlNode PreviousSibling { get; }

Gets the node immediately preceding this node.

public virtual XmlNode PreviousText { get; }

Gets the text node that immediately precedes this node.

public virtual string Value { get; set; }

Gets or sets the value of the node.

public virtual XmlNode AppendChild(XmlNode newChild)

Adds the specified node to the end of the list of child nodes, of this node.

public abstract XmlNode CloneNode(bool deep)

Creates a duplicate of the node, when overridden in a derived class.

Get an enumerator that iterates through the child nodes in the current node.

public virtual string GetNamespaceOfPrefix(string prefix)

Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration.

public virtual string GetPrefixOfNamespace(string namespaceURI)

Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration.

public virtual XmlNode InsertAfter(XmlNode newChild, XmlNode refChild)

Inserts the specified node immediately after the specified reference node.

public virtual XmlNode InsertBefore(XmlNode newChild, XmlNode refChild)

Inserts the specified node immediately before the specified reference node.

public virtual void Normalize()

Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes.

public virtual XmlNode PrependChild(XmlNode newChild)

Adds the specified node to the beginning of the list of child nodes for this node.

public virtual void RemoveAll()

Removes all the child nodes and/or attributes of the current node.

public virtual XmlNode RemoveChild(XmlNode oldChild)

Removes specified child node.

public virtual XmlNode ReplaceChild(XmlNode newChild, XmlNode oldChild)

Replaces the child node oldChild with newChild node.

public virtual bool Supports(string feature, string version)

Tests if the DOM implementation implements a specific feature.

public abstract void WriteContentTo(XmlWriter w)

Saves all the child nodes of the node to the specified XmlWriter, when overridden in a derived class.

public abstract void WriteTo(XmlWriter w)

Saves the current node to the specified XmlWriter, when overridden in a derived class.