<PackageReference Include="NUnit" Version="4.2.2" />

NUnit.Framework.Interfaces.TNode

public sealed class TNode
TNode represents a single node in the XML representation of a Test or TestResult. It replaces System.Xml.XmlNode and System.Xml.Linq.XElement, providing a minimal set of methods for operating on the XML in a platform-independent manner.
namespace NUnit.Framework.Interfaces { public sealed class TNode { public readonly struct NodeList : IEnumerable<TNode>, IEnumerable { public TNode this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get; } public int Count { get; } public List<TNode>.Enumerator GetEnumerator(); } public readonly struct AttributeDictionary { [System.Runtime.CompilerServices.Nullable(2)] public string this[string key] { [MethodImpl(MethodImplOptions.AggressiveInlining)] [return: System.Runtime.CompilerServices.Nullable(2)] get; } public int Count { get; } public Dictionary<string, string>.Enumerator GetEnumerator(); } public string Name { get; } public string Value { get; set; } public bool ValueIsCDATA { get; set; } public AttributeDictionary Attributes { get; } public NodeList ChildNodes { get; } public TNode FirstChild { get; } public string OuterXml { get; } public TNode(string name); public TNode(string name, string value); public TNode(string name, string value, bool valueIsCDATA); public static TNode FromXml(string xmlText); public TNode AddElement(string name); public TNode AddElement(string name, string value); public TNode AddElementWithCDATA(string name, string value); public void AddChildNode(TNode node); public void InsertChildNode(int index, TNode node); public void AddAttribute(string name, string value); public TNode SelectSingleNode(string xpath); public List<TNode> SelectNodes(string xpath); public void WriteTo(XmlWriter writer); } }