<PackageReference Include="NUnit" Version="3.0.0-alpha" />

IXmlNodeBuilder

public interface IXmlNodeBuilder
An object implementing IXmlNodeBuilder is able to build an XmlNode representation of itself and any children.
XmlNode AddToXml(XmlNode parentNode, bool recursive)

Returns an XmlNode representing the current object after adding it as a child of the supplied parent node.

XmlNode ToXml(bool recursive)

Returns an XmlNode representing the current object.