XmlDocument
Represents an XML document.For more information, see the Remarks section.
Gets the root XmlElement for the document.
Gets the XmlImplementation object for the current document.
Gets the XmlNameTable associated with this implementation.
Gets or sets a value indicating whether to preserve white space in element content.
Occurs when the Value of a node belonging to this document has been changed.
Occurs when the Value of a node belonging to this document is about to be changed.
Occurs when a node belonging to this document has been inserted into another node.
Occurs when a node belonging to this document is about to be inserted into another node.
Occurs when a node belonging to this document has been removed from its parent.
Occurs when a node belonging to this document is about to be removed from the document.
public XmlDocument()
Initializes a new instance of the XmlDocument class.
Initializes a new instance of the XmlDocument class with the specified XmlNameTable.
Creates an XmlAttribute with the specified Name.
Creates an XmlAttribute with the specified qualified name and NamespaceURI.
Creates an XmlCDataSection containing the specified data.
Creates an XmlComment containing the specified data.
Creates an XmlDocumentFragment.
Creates an element with the specified name.
Creates an XmlElement with the qualified name and NamespaceURI.
public virtual XmlNode CreateNode(XmlNodeType type, string prefix, string name, string namespaceURI)
Creates an XmlProcessingInstruction with the specified name and data.
Creates an XmlSignificantWhitespace node.
Creates an XmlText with the specified text.
Creates an XmlWhitespace node.
public virtual XmlDeclaration CreateXmlDeclaration(string version, string encoding, string standalone)
Creates an XmlDeclaration node with the specified values.
Returns an XmlNodeList containing a list of all descendant elements that match the specified Name.
Returns an XmlNodeList containing a list of all descendant elements that match the specified LocalName and NamespaceURI.
Imports a node from another document to the current document.
Loads the XML document from the specified stream.
Loads the XML document from the specified TextReader.
Loads the XML document from the specified XmlReader.
Loads the XML document from the specified string.
Creates an XmlNode object based on the information in the XmlReader. The reader must be positioned on a node or attribute.
Saves the XML document to the specified stream.
Saves the XML document to the specified TextWriter.
Saves the XML document to the specified XmlWriter.