Class XmlNodeRewriter
An implementation of IRewriter<T> for XmlNodes.
Inheritance
- Object
- XmlNodeRewriter
Implements
Declaration
public class XmlNodeRewriter : Object, IRewriter<XmlNode>
Constructors
XmlNodeRewriter()
Create a new instance of XmlNodeRewriter.
Declaration
protected XmlNodeRewriter()
Properties
Instance
Gets the single global instance of XElementRewriter.
Declaration
public static XmlNodeRewriter Instance { get; }
Property Value
Type | Description |
---|---|
The single global instance of XElementRewriter. |
Methods
CountChildren(XmlNode)
Declaration
public int CountChildren(XmlNode value)
Parameters
Type | Name | Description |
---|---|---|
value |
Returns
Type | Description |
---|---|
GetChildren(Span<XmlNode>, XmlNode)
Declaration
public void GetChildren(Span<XmlNode> children, XmlNode value)
Parameters
Type | Name | Description |
---|---|---|
children |
||
value |
SetChildren(ReadOnlySpan<XmlNode>, XmlNode)
Declaration
public XmlNode SetChildren(ReadOnlySpan<XmlNode> newChildren, XmlNode oldValue)
Parameters
Type | Name | Description |
---|---|---|
newChildren |
||
oldValue |
Returns
Type | Description |
---|---|