XmlDocument
XmlDocument is a class in the .NET Framework and .NET Core that represents an XML document as a Document Object Model (DOM). It provides a programmatic representation of the document's tree structure, enabling code to read, navigate, modify, and write XML. XmlDocument inherits from XmlNode and serves as the root of the document tree.
Key features include constructing or loading the document from a file, stream, string, or XmlReader; accessing
XmlDocument provides properties to access or alter the document content, such as InnerXml and OuterXml, and
Usage considerations: XmlDocument operates in memory and is suitable for moderate-sized XML documents. For large files
Where applicable, the class is found in the System.Xml namespace. It interoperates with validation through XmlReaderSettings