Class
XmlNode
Represents an renderable XML node.
public class XmlNode : INodeInheritance #
Implements #
Inherited Members #
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Extension Methods #
XmlNodeExtensions.SelfClosed<XmlNode>(XmlNode), XmlNodeExtensions.WithAttribute<XmlNode>(XmlNode, string), XmlNodeExtensions.WithAttribute<XmlNode>(XmlNode, string, object?), XmlNodeExtensions.WithAttributes<XmlNode>(XmlNode, object?), XmlNodeExtensions.WithContent<XmlNode>(XmlNode, Action<XmlNode>), XmlNodeExtensions.WithContent<XmlNode>(XmlNode, object?), XmlNodeExtensions.WithContent<XmlNode>(XmlNode, string?)
Constructors #
| Name | Description |
|---|---|
| XmlNode(string) | Initializes a new instance of the XmlNode class with the specified tag name. |
| XmlNode(string, object?) | Initializes a new instance of the XmlNode class with the specified tag name and content. |
| XmlNode(string, string) | Initializes a new instance of the XmlNode class with the specified tag name and content. |
| XmlNode(string, Action<XmlNode>) | Initializes a new instance of the XmlNode class with the specified tag name. |
Properties #
| Name | Description |
|---|---|
| Attributes | Gets or sets the collection of attributes for this node. |
| Children | Gets or sets the collection of child elements within this node. |
| SelfClosing | Gets or sets a value indicating whether this XML node is self-closing. |
| TagName | Gets or sets the tag name of the XML node. |
Methods #
| Name | Description |
|---|---|
| ToString() | Renders this XmlNode into it’s XML string representation. |
Operators #
| Name | Description |
|---|---|
| operator +(XmlNode, XmlNode?) | |
| operator +(XmlNode, object?) | |
| operator +(XmlNode, string?) |