Sawmill

Class XmlNodeRewriter

An implementation of IRewriter<T> for XmlNodes.

Inheritance
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

XmlNodeRewriter

The single global instance of XElementRewriter.

Methods

CountChildren(XmlNode)

CountChildren(T)
Declaration
public int CountChildren(XmlNode value)
Parameters
Type Name Description

XmlNode

value

Returns
Type Description

Int32

GetChildren(Span<XmlNode>, XmlNode)

GetChildren(Span<T>, T)
Declaration
public void GetChildren(Span<XmlNode> children, XmlNode value)
Parameters
Type Name Description

Span<XmlNode>

children

XmlNode

value

SetChildren(ReadOnlySpan<XmlNode>, XmlNode)

SetChildren(ReadOnlySpan<T>, T)
Declaration
public XmlNode SetChildren(ReadOnlySpan<XmlNode> newChildren, XmlNode oldValue)
Parameters
Type Name Description

ReadOnlySpan<XmlNode>

newChildren

XmlNode

oldValue

Returns
Type Description

XmlNode

Implements

IRewriter<T>