mscorlib(4.0.0.0) API with additions
System.Xml.XmlElement Class Reference

Represents an element. More...

Inheritance diagram for System.Xml.XmlElement:
[legend]
Collaboration diagram for System.Xml.XmlElement:
[legend]

Public Member Functions

override XmlNode CloneNode (bool deep)
 Creates a duplicate of this node. More...
 
virtual string GetAttribute (string name)
 Returns the value for the attribute with the specified name. More...
 
virtual void SetAttribute (string name, string value)
 Sets the value of the attribute with the specified name. More...
 
virtual void RemoveAttribute (string name)
 Removes an attribute by name. More...
 
virtual XmlAttribute GetAttributeNode (string name)
 Returns the XmlAttribute with the specified name. More...
 
virtual XmlAttribute SetAttributeNode (XmlAttribute newAttr)
 Adds the specified T:System.Xml.XmlAttribute. More...
 
virtual XmlAttribute RemoveAttributeNode (XmlAttribute oldAttr)
 Removes the specified T:System.Xml.XmlAttribute. More...
 
virtual XmlNodeList GetElementsByTagName (string name)
 Returns an T:System.Xml.XmlNodeList containing a list of all descendant elements that match the specified P:System.Xml.XmlElement.Name. More...
 
virtual string GetAttribute (string localName, string namespaceURI)
 Returns the value for the attribute with the specified local name and namespace URI. More...
 
virtual string SetAttribute (string localName, string namespaceURI, string value)
 Sets the value of the attribute with the specified local name and namespace URI. More...
 
virtual void RemoveAttribute (string localName, string namespaceURI)
 Removes an attribute with the specified local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced). More...
 
virtual XmlAttribute GetAttributeNode (string localName, string namespaceURI)
 Returns the T:System.Xml.XmlAttribute with the specified local name and namespace URI. More...
 
virtual XmlAttribute SetAttributeNode (string localName, string namespaceURI)
 Adds the specified T:System.Xml.XmlAttribute. More...
 
virtual XmlAttribute RemoveAttributeNode (string localName, string namespaceURI)
 Removes the T:System.Xml.XmlAttribute specified by the local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced). More...
 
virtual XmlNodeList GetElementsByTagName (string localName, string namespaceURI)
 Returns an T:System.Xml.XmlNodeList containing a list of all descendant elements that match the specified P:System.Xml.XmlElement.LocalName and P:System.Xml.XmlElement.NamespaceURI. More...
 
virtual bool HasAttribute (string name)
 Determines whether the current node has an attribute with the specified name. More...
 
virtual bool HasAttribute (string localName, string namespaceURI)
 Determines whether the current node has an attribute with the specified local name and namespace URI. More...
 
override void WriteTo (XmlWriter w)
 Saves the current node to the specified T:System.Xml.XmlWriter. More...
 
override void WriteContentTo (XmlWriter w)
 Saves all the children of the node to the specified T:System.Xml.XmlWriter. More...
 
virtual XmlNode RemoveAttributeAt (int i)
 Removes the attribute node with the specified index from the element. (If the removed attribute has a default value, it is immediately replaced). More...
 
virtual void RemoveAllAttributes ()
 Removes all specified attributes from the element. Default attributes are not removed. More...
 
override void RemoveAll ()
 Removes all specified attributes and children of the current node. Default attributes are not removed. More...
 
- Public Member Functions inherited from System.Xml.XmlNode
virtual XPathNavigator CreateNavigator ()
 Creates an T:System.Xml.XPath.XPathNavigator for navigating this object. More...
 
XmlNode SelectSingleNode (string xpath)
 Selects the first XmlNode that matches the XPath expression. More...
 
XmlNode SelectSingleNode (string xpath, XmlNamespaceManager nsmgr)
 Selects the first XmlNode that matches the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied T:System.Xml.XmlNamespaceManager. More...
 
XmlNodeList SelectNodes (string xpath)
 Selects a list of nodes matching the XPath expression. More...
 
XmlNodeList SelectNodes (string xpath, XmlNamespaceManager nsmgr)
 Selects a list of nodes matching the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied T:System.Xml.XmlNamespaceManager. More...
 
virtual XmlNode InsertBefore (XmlNode newChild, XmlNode refChild)
 Inserts the specified node immediately before the specified reference node. More...
 
virtual XmlNode InsertAfter (XmlNode newChild, XmlNode refChild)
 Inserts the specified node immediately after the specified reference node. More...
 
virtual XmlNode ReplaceChild (XmlNode newChild, XmlNode oldChild)
 Replaces the child node oldChild with newChild node. More...
 
virtual XmlNode RemoveChild (XmlNode oldChild)
 Removes specified child node. More...
 
virtual XmlNode PrependChild (XmlNode newChild)
 Adds the specified node to the beginning of the list of child nodes for this node. More...
 
virtual XmlNode AppendChild (XmlNode newChild)
 Adds the specified node to the end of the list of child nodes, of this node. More...
 
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. More...
 
virtual bool Supports (string feature, string version)
 Tests if the DOM implementation implements a specific feature. More...
 
virtual XmlNode Clone ()
 Creates a duplicate of this node. More...
 
IEnumerator GetEnumerator ()
 Get an enumerator that iterates through the child nodes in the current node. More...
 
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. More...
 
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. More...
 

Public Attributes

override string Name => name.Name
 Gets the qualified name of the node. More...
 
override string LocalName => name.LocalName
 Gets the local name of the current node. More...
 
override string NamespaceURI => name.NamespaceURI
 Gets the namespace URI of this node. More...
 
override XmlNodeType NodeType => XmlNodeType.Element
 Gets the type of the current node. More...
 
override XmlNode ParentNode => parentNode
 Gets the parent of this node (for nodes that can have parents). More...
 
override XmlDocument OwnerDocument => name.OwnerDocument
 Gets the T:System.Xml.XmlDocument to which this node belongs. More...
 
override IXmlSchemaInfo SchemaInfo => name
 Gets the post schema validation infoset that has been assigned to this node as a result of schema validation. More...
 
- Public Attributes inherited from System.Xml.XmlNode
virtual XmlNodeList ChildNodes => new XmlChildNodes(this)
 Gets all the child nodes of the node. More...
 
virtual XmlNode PreviousSibling => null
 Gets the node immediately preceding this node. More...
 
virtual XmlNode NextSibling => null
 Gets the node immediately following this node. More...
 
virtual XmlAttributeCollection Attributes => null
 Gets an T:System.Xml.XmlAttributeCollection containing the attributes of this node. More...
 
virtual XmlNode FirstChild => LastNode?.next
 Gets the first child of the node. More...
 
virtual XmlNode LastChild => LastNode
 Gets the last child of the node. More...
 
virtual bool HasChildNodes => LastNode != null
 Gets a value indicating whether this node has any child nodes. More...
 
virtual string NamespaceURI => string.Empty
 Gets the namespace URI of this node. More...
 
virtual IXmlSchemaInfo SchemaInfo => XmlDocument.NotKnownSchemaInfo
 Gets the post schema validation infoset that has been assigned to this node as a result of schema validation. More...
 
virtual XmlNode PreviousText => null
 Gets the text node that immediately precedes this node. More...
 

Protected Member Functions

internal XmlElement (string prefix, string localName, string namespaceURI, XmlDocument doc)
 Initializes a new instance of the T:System.Xml.XmlElement class. More...
 

Properties

override string Prefix [get, set]
 Gets or sets the namespace prefix of this node. More...
 
bool IsEmpty [get, set]
 Gets or sets the tag format of the element. More...
 
override XmlAttributeCollection Attributes [get]
 Gets an T:System.Xml.XmlAttributeCollection containing the list of attributes for this node. More...
 
virtual bool HasAttributes [get]
 Gets a boolean value indicating whether the current node has any attributes. More...
 
override string InnerXml [get, set]
 Gets or sets the markup representing just the children of this node. More...
 
override string InnerText [get, set]
 Gets or sets the concatenated values of the node and all its children. More...
 
override XmlNode NextSibling [get]
 Gets the T:System.Xml.XmlNode immediately following this element. More...
 
- Properties inherited from System.Xml.XmlLinkedNode
override XmlNode PreviousSibling [get]
 Gets the node immediately preceding this node. More...
 
override XmlNode NextSibling [get]
 Gets the node immediately following this node. More...
 
- Properties inherited from System.Xml.XmlNode
abstract string Name [get]
 Gets the qualified name of the node, when overridden in a derived class. More...
 
virtual string Value [get, set]
 Gets or sets the value of the node. More...
 
abstract XmlNodeType NodeType [get]
 Gets the type of the current node, when overridden in a derived class. More...
 
virtual XmlNode ParentNode [get]
 Gets the parent of this node (for nodes that can have parents). More...
 
virtual XmlDocument OwnerDocument [get]
 Gets the T:System.Xml.XmlDocument to which this node belongs. More...
 
virtual string Prefix [get, set]
 Gets or sets the namespace prefix of this node. More...
 
abstract string LocalName [get]
 Gets the local name of the node, when overridden in a derived class. More...
 
virtual bool IsReadOnly [get]
 Gets a value indicating whether the node is read-only. More...
 
virtual string InnerText [get, set]
 Gets or sets the concatenated values of the node and all its child nodes. More...
 
virtual string OuterXml [get]
 Gets the markup containing this node and all its child nodes. More...
 
virtual string InnerXml [get, set]
 Gets or sets the markup representing only the child nodes of this node. More...
 
virtual string BaseURI [get]
 Gets the base URI of the current node. More...
 
virtual XmlElement this[string name] [get]
 Gets the first child element with the specified P:System.Xml.XmlNode.Name. More...
 
virtual XmlElement this[string localname, string ns] [get]
 Gets the first child element with the specified P:System.Xml.XmlNode.LocalName and P:System.Xml.XmlNode.NamespaceURI. More...
 

Detailed Description

Represents an element.

Definition at line 7 of file XmlElement.cs.

Constructor & Destructor Documentation

◆ XmlElement()

internal System.Xml.XmlElement.XmlElement ( string  prefix,
string  localName,
string  namespaceURI,
XmlDocument  doc 
)
protected

Initializes a new instance of the T:System.Xml.XmlElement class.

Parameters
prefixThe namespace prefix; see the P:System.Xml.XmlElement.Prefix property.
localNameThe local name; see the P:System.Xml.XmlElement.LocalName property.
namespaceURIThe namespace URI; see the P:System.Xml.XmlElement.NamespaceURI property.
docThe parent XML document.

Definition at line 231 of file XmlElement.cs.

Member Function Documentation

◆ CloneNode()

override XmlNode System.Xml.XmlElement.CloneNode ( bool  deep)
virtual

Creates a duplicate of this node.

Parameters
deeptrue to recursively clone the subtree under the specified node; false to clone only the node itself (and its attributes if the node is an XmlElement).
Returns
The cloned node.

Implements System.Xml.XmlNode.

Definition at line 240 of file XmlElement.cs.

◆ GetAttribute() [1/2]

virtual string System.Xml.XmlElement.GetAttribute ( string  name)
virtual

Returns the value for the attribute with the specified name.

Parameters
nameThe name of the attribute to retrieve. This is a qualified name. It is matched against the Name property of the matching node.
Returns
The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value.

Definition at line 327 of file XmlElement.cs.

◆ GetAttribute() [2/2]

virtual string System.Xml.XmlElement.GetAttribute ( string  localName,
string  namespaceURI 
)
virtual

Returns the value for the attribute with the specified local name and namespace URI.

Parameters
localNameThe local name of the attribute to retrieve.
namespaceURIThe namespace URI of the attribute to retrieve.
Returns
The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value.

Definition at line 419 of file XmlElement.cs.

◆ GetAttributeNode() [1/2]

virtual XmlAttribute System.Xml.XmlElement.GetAttributeNode ( string  name)
virtual

Returns the XmlAttribute with the specified name.

Parameters
nameThe name of the attribute to retrieve. This is a qualified name. It is matched against the Name property of the matching node.
Returns
The specified XmlAttribute or null if a matching attribute was not found.

Definition at line 371 of file XmlElement.cs.

◆ GetAttributeNode() [2/2]

virtual XmlAttribute System.Xml.XmlElement.GetAttributeNode ( string  localName,
string  namespaceURI 
)
virtual

Returns the T:System.Xml.XmlAttribute with the specified local name and namespace URI.

Parameters
localNameThe local name of the attribute.
namespaceURIThe namespace URI of the attribute.
Returns
The specified XmlAttribute or null if a matching attribute was not found.

Definition at line 463 of file XmlElement.cs.

◆ GetElementsByTagName() [1/2]

virtual XmlNodeList System.Xml.XmlElement.GetElementsByTagName ( string  name)
virtual

Returns an T:System.Xml.XmlNodeList containing a list of all descendant elements that match the specified P:System.Xml.XmlElement.Name.

Parameters
nameThe name tag to match. This is a qualified name. It is matched against the Name property of the matching node. The asterisk (*) is a special value that matches all tags.
Returns
An T:System.Xml.XmlNodeList containing a list of all matching nodes. The list is empty if there are no matching nodes.

Definition at line 410 of file XmlElement.cs.

◆ GetElementsByTagName() [2/2]

virtual XmlNodeList System.Xml.XmlElement.GetElementsByTagName ( string  localName,
string  namespaceURI 
)
virtual

Returns an T:System.Xml.XmlNodeList containing a list of all descendant elements that match the specified P:System.Xml.XmlElement.LocalName and P:System.Xml.XmlElement.NamespaceURI.

Parameters
localNameThe local name to match. The asterisk (*) is a special value that matches all tags.
namespaceURIThe namespace URI to match.
Returns
An T:System.Xml.XmlNodeList containing a list of all matching nodes. The list is empty if there are no matching nodes.

Definition at line 507 of file XmlElement.cs.

◆ HasAttribute() [1/2]

virtual bool System.Xml.XmlElement.HasAttribute ( string  name)
virtual

Determines whether the current node has an attribute with the specified name.

Parameters
nameThe name of the attribute to find. This is a qualified name. It is matched against the Name property of the matching node.
Returns
true if the current node has the specified attribute; otherwise, false.

Definition at line 516 of file XmlElement.cs.

◆ HasAttribute() [2/2]

virtual bool System.Xml.XmlElement.HasAttribute ( string  localName,
string  namespaceURI 
)
virtual

Determines whether the current node has an attribute with the specified local name and namespace URI.

Parameters
localNameThe local name of the attribute to find.
namespaceURIThe namespace URI of the attribute to find.
Returns
true if the current node has the specified attribute; otherwise, false.

Definition at line 526 of file XmlElement.cs.

◆ RemoveAll()

override void System.Xml.XmlElement.RemoveAll ( )
virtual

Removes all specified attributes and children of the current node. Default attributes are not removed.

Reimplemented from System.Xml.XmlNode.

Definition at line 638 of file XmlElement.cs.

◆ RemoveAllAttributes()

virtual void System.Xml.XmlElement.RemoveAllAttributes ( )
virtual

Removes all specified attributes from the element. Default attributes are not removed.

Definition at line 629 of file XmlElement.cs.

◆ RemoveAttribute() [1/2]

virtual void System.Xml.XmlElement.RemoveAttribute ( string  name)
virtual

Removes an attribute by name.

Parameters
nameThe name of the attribute to remove.This is a qualified name. It is matched against the Name property of the matching node.
Exceptions
T:System.ArgumentExceptionThe node is read-only.

Definition at line 360 of file XmlElement.cs.

◆ RemoveAttribute() [2/2]

virtual void System.Xml.XmlElement.RemoveAttribute ( string  localName,
string  namespaceURI 
)
virtual

Removes an attribute with the specified local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced).

Parameters
localNameThe local name of the attribute to remove.
namespaceURIThe namespace URI of the attribute to remove.
Exceptions
T:System.ArgumentExceptionThe node is read-only.

Definition at line 454 of file XmlElement.cs.

◆ RemoveAttributeAt()

virtual XmlNode System.Xml.XmlElement.RemoveAttributeAt ( int  i)
virtual

Removes the attribute node with the specified index from the element. (If the removed attribute has a default value, it is immediately replaced).

Parameters
iThe index of the node to remove. The first node has index 0.
Returns
The attribute node removed or null if there is no node at the given index.

Definition at line 619 of file XmlElement.cs.

◆ RemoveAttributeNode() [1/2]

virtual XmlAttribute System.Xml.XmlElement.RemoveAttributeNode ( XmlAttribute  oldAttr)
virtual

Removes the specified T:System.Xml.XmlAttribute.

Parameters
oldAttrThe XmlAttribute node to remove. If the removed attribute has a default value, it is immediately replaced.
Returns
The removed XmlAttribute or null if oldAttr is not an attribute node of the XmlElement.
Exceptions
T:System.ArgumentExceptionThis node is read-only.

Definition at line 398 of file XmlElement.cs.

◆ RemoveAttributeNode() [2/2]

virtual XmlAttribute System.Xml.XmlElement.RemoveAttributeNode ( string  localName,
string  namespaceURI 
)
virtual

Removes the T:System.Xml.XmlAttribute specified by the local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced).

Parameters
localNameThe local name of the attribute.
namespaceURIThe namespace URI of the attribute.
Returns
The removed XmlAttribute or null if the XmlElement does not have a matching attribute node.
Exceptions
T:System.ArgumentExceptionThis node is read-only.

Definition at line 492 of file XmlElement.cs.

◆ SetAttribute() [1/2]

virtual void System.Xml.XmlElement.SetAttribute ( string  name,
string  value 
)
virtual

Sets the value of the attribute with the specified name.

Parameters
nameThe name of the attribute to create or alter. This is a qualified name. If the name contains a colon it is parsed into prefix and local name components.
valueThe value to set for the attribute.
Exceptions
T:System.Xml.XmlExceptionThe specified name contains an invalid character.
T:System.ArgumentExceptionThe node is read-only.

Definition at line 342 of file XmlElement.cs.

◆ SetAttribute() [2/2]

virtual string System.Xml.XmlElement.SetAttribute ( string  localName,
string  namespaceURI,
string  value 
)
virtual

Sets the value of the attribute with the specified local name and namespace URI.

Parameters
localNameThe local name of the attribute.
namespaceURIThe namespace URI of the attribute.
valueThe value to set for the attribute.
Returns
The attribute value.

Definition at line 434 of file XmlElement.cs.

◆ SetAttributeNode() [1/2]

virtual XmlAttribute System.Xml.XmlElement.SetAttributeNode ( XmlAttribute  newAttr)
virtual

Adds the specified T:System.Xml.XmlAttribute.

Parameters
newAttrThe XmlAttribute node to add to the attribute collection for this element.
Returns
If the attribute replaces an existing attribute with the same name, the old XmlAttribute is returned; otherwise, null is returned.
Exceptions
T:System.ArgumentExceptionThe newAttr was created from a different document than the one that created this node. Or this node is read-only.
T:System.InvalidOperationExceptionThe newAttr is already an attribute of another XmlElement object. You must explicitly clone XmlAttribute nodes to re-use them in other XmlElement objects.

Definition at line 385 of file XmlElement.cs.

◆ SetAttributeNode() [2/2]

virtual XmlAttribute System.Xml.XmlElement.SetAttributeNode ( string  localName,
string  namespaceURI 
)
virtual

Adds the specified T:System.Xml.XmlAttribute.

Parameters
localNameThe local name of the attribute.
namespaceURIThe namespace URI of the attribute.
Returns
The XmlAttribute to add.

Definition at line 476 of file XmlElement.cs.

◆ WriteContentTo()

override void System.Xml.XmlElement.WriteContentTo ( XmlWriter  w)
virtual

Saves all the children of the node to the specified T:System.Xml.XmlWriter.

Parameters
wThe XmlWriter to which you want to save.

Implements System.Xml.XmlNode.

Definition at line 608 of file XmlElement.cs.

◆ WriteTo()

override void System.Xml.XmlElement.WriteTo ( XmlWriter  w)
virtual

Saves the current node to the specified T:System.Xml.XmlWriter.

Parameters
wThe XmlWriter to which you want to save.

Implements System.Xml.XmlNode.

Definition at line 533 of file XmlElement.cs.

Member Data Documentation

◆ LocalName

override string System.Xml.XmlElement.LocalName => name.LocalName

Gets the local name of the current node.

Returns
The name of the current node with the prefix removed. For example, LocalName is book for the element <bk:book>.

Definition at line 33 of file XmlElement.cs.

◆ Name

override string System.Xml.XmlElement.Name => name.Name

Gets the qualified name of the node.

Returns
The qualified name of the node. For XmlElement nodes, this is the tag name of the element.

Definition at line 29 of file XmlElement.cs.

◆ NamespaceURI

override string System.Xml.XmlElement.NamespaceURI => name.NamespaceURI

Gets the namespace URI of this node.

Returns
The namespace URI of this node. If there is no namespace URI, this property returns String.Empty.

Definition at line 37 of file XmlElement.cs.

◆ NodeType

override XmlNodeType System.Xml.XmlElement.NodeType => XmlNodeType.Element

Gets the type of the current node.

Returns
The node type. For XmlElement nodes, this value is XmlNodeType.Element.

Definition at line 57 of file XmlElement.cs.

◆ OwnerDocument

override XmlDocument System.Xml.XmlElement.OwnerDocument => name.OwnerDocument

Gets the T:System.Xml.XmlDocument to which this node belongs.

Returns
The XmlDocument to which this element belongs.

Definition at line 65 of file XmlElement.cs.

◆ ParentNode

override XmlNode System.Xml.XmlElement.ParentNode => parentNode

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

Returns
The XmlNode that is the parent of the current node. If a node has just been created and not yet added to the tree, or if it has been removed from the tree, the parent is null. For all other nodes, the value returned depends on the P:System.Xml.XmlNode.NodeType of the node. The following table describes the possible return values for the ParentNode property.

Definition at line 61 of file XmlElement.cs.

◆ SchemaInfo

override IXmlSchemaInfo System.Xml.XmlElement.SchemaInfo => name

Gets the post schema validation infoset that has been assigned to this node as a result of schema validation.

Returns
An T:System.Xml.Schema.IXmlSchemaInfo object containing the post schema validation infoset of this node.

Definition at line 148 of file XmlElement.cs.

Property Documentation

◆ Attributes

override XmlAttributeCollection System.Xml.XmlElement.Attributes
get

Gets an T:System.Xml.XmlAttributeCollection containing the list of attributes for this node.

Returns
T:System.Xml.XmlAttributeCollection containing the list of attributes for this node.

Definition at line 114 of file XmlElement.cs.

◆ HasAttributes

virtual bool System.Xml.XmlElement.HasAttributes
get

Gets a boolean value indicating whether the current node has any attributes.

Returns
true if the current node has attributes; otherwise, false.

Definition at line 135 of file XmlElement.cs.

◆ InnerText

override string System.Xml.XmlElement.InnerText
getset

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

Returns
The concatenated values of the node and all its children.

Definition at line 170 of file XmlElement.cs.

◆ InnerXml

override string System.Xml.XmlElement.InnerXml
getset

Gets or sets the markup representing just the children of this node.

Returns
The markup of the children of this node.
Exceptions
T:System.Xml.XmlExceptionThe XML specified when setting this property is not well-formed.

Definition at line 154 of file XmlElement.cs.

◆ IsEmpty

bool System.Xml.XmlElement.IsEmpty
getset

Gets or sets the tag format of the element.

Returns
Returns true if the element is to be serialized in the short tag format "&lt;item/&gt;"; false for the long format "&lt;item&gt;&lt;/item&gt;".When setting this property, if set to true, the children of the element are removed and the element is serialized in the short tag format. If set to false, the value of the property is changed (regardless of whether or not the element has content); if the element is empty, it is serialized in the long format.This property is a Microsoft extension to the Document Object Model (DOM).

Definition at line 72 of file XmlElement.cs.

◆ NextSibling

override XmlNode System.Xml.XmlElement.NextSibling
get

Gets the T:System.Xml.XmlNode immediately following this element.

Returns
The XmlNode immediately following this element.

Definition at line 191 of file XmlElement.cs.

◆ Prefix

override string System.Xml.XmlElement.Prefix
getset

Gets or sets the namespace prefix of this node.

Returns
The namespace prefix of this node. If there is no prefix, this property returns String.Empty.
Exceptions
T:System.ArgumentExceptionThis node is read-only
T:System.Xml.XmlExceptionThe specified prefix contains an invalid character.The specified prefix is malformed.The namespaceURI of this node is null.The specified prefix is "xml" and the namespaceURI of this node is different from http://www.w3.org/XML/1998/namespace.

Definition at line 44 of file XmlElement.cs.


The documentation for this class was generated from the following file: