only for RuBoard |
XmlDocument class in the System.Xml namespace is the implementation of the W3C Document interface. This class inherits from the XmlNode class and provides functionality such as loading XML documents into the DOM structure and creating XML documents. Table B.3 and Table B.4 list the properties and methods respectively found in the XmlDocument class.
XmlDocument (Inherits XmlNode ) | Description | MSXML DOMDocument |
---|---|---|
BaseURI (Overrides XMLNode::BaseURI ) | Gets the base URI of the current node. Indicates from where the node was loaded from. | |
DocumentElement | Retrieves the root element of the XML document as an XmlElement object. | documentElement |
DocumentType | Gets the <!DOCTYPE..> declaration if one exists as an XmlDocumentType object. | doctype Get it as an IXMLDOMDocumentType object. |
Implementation | Returns the Xml Implementation object for the XML document. | implementation Returns the IXMLDOMImplementation object for the XML document. |
InnerXml (Overrides XMLNode::InnerXml ) | Gets or sets the markup representing the children of the current node. | |
IsReadOnly (Overrides XMLNode::IsReadOnly ) | Returns a Boolean indicating whether the current node is read only. | |
LocalName (Overrides XMLNode::LocalName ) | Gets the name of the node without the namespace prefix. | baseName |
Name (Overrides XMLNode::Name ) | Gets the qualified name of the node. | nodeName |
NameTable | Returns the XmlNameTable associated with this implementation. | |
NodeType (Overrides XMLNode::NodeType ) | Returns an XmlNodeType enumeration member representing this node's type. | nodeType (Gets an IXMLDOMNodeType Enumeration member.) |
OwnerDocument (Overrides XMLNode::OwnerDocument ) | Gets the XmlDocument to which the current node belongs. | ownerDocument Gets the IXMLDOMDocument root note to which the current node belongs. |
PreserveWhitespace | Gets or sets a Boolean indicating if white space would be preserved or stripped. | preserveWhiteSpace |
XmlResolver | Sets the XmlResolver to use for resolving external resources. |
XmlDocument (Inherits XmlNode ) | Description | MSXML DOMDocument |
---|---|---|
CloneNode (Overrides XMLNode::CloneNode ) | Similar to XMLNode::Clone , but accepts a deep Boolean parameter indicating if the subtree should be duplicated . | cloneNode |
CreateAttribute Overloaded. Creates an XmlAttribute with the specified name. | Creates an XmlAttribute node with the specified name. | createAttribute Creates a new object of type IXMLDOMAttributeat tribute with the specified name. |
CreateCDataSection | Creates an XmlCDATASection containing the specified data. | createCDATASection Creates a IXMLDOMCDATASection node. |
CreateComment | Creates an XmlComment containing the data specified. | createComment Creates an IXMLDOMComment . |
CreateDocumentFragment | Creates an empty XmlDocumentFragment used for tree inserts . | createDocument Fragment Creates an empty DocumentFragment object. |
CreateDocumentType | Creates an XmlDocumentType object. | |
CreateElement | Creates an empty XmlElement . Use the Value property to specify text data for the element, or append an XmlTextNode as the element's child. | createElement Creates an empty IXMLDOMElement object. |
CreateEntityReference | Creates an XmlEntityReference with the specified name. | createEntity Reference Creates an IXMLDOMEntity Reference object. |
CreateNode | Creates an XmlNode object with the specified XmlNodeType . | createNode Creates an IXMLDOMNode object. |
CreateProcessing Instruction | Creates an XmlProcessingInstruction that contains the specified target and data. For working with the <?xml version="1.0"?> XML declaration, use the CreateXmlDeclaration method. | createProcessing Instruction Creates an IXMLDOMProcessing Instruction object. |
CreateSignificant Whitespace | Creates an XmlSignificantWhitespace node containing only the characters , , , and 	. | |
CreateTextNode | Creates an XmlTextNode with the passed in text. | createTextNode Creates an IMLDOMText object. |
CreateWhitespace | Creates an XmlWhitespace node containing only the characters , , , and 	. | |
CreateXmlDeclaration | Creates an XmlDeclaration object with the specified values. Accepts parameters for version, encoding, and standalone. | |
GetElementById | Gets the XmlElement with the specified ID attribute. If multiple matches are found, returns only the first match. | |
GetElementsByTagName | Returns an XmlNodeList containing all the descendant elements with the specified name. | getElementsByTagName Returns IXMLDOMNodeList |
ImportNode | Imports a node from an external document to the current document. | |
Load | Loads the XML data. Sources for the XML data include from a URL, a Stream , a TextReader , and an XmlReader . | load Sources include URL, IStream , Internet Information Services (IIS) Request object. |
LoadXml | Loads the XML document from the string parameter. | loadXML |
ReadNode | Creates an XmlNode object based on the information in the XmlReader . The reader must be positioned on a node or attribute. If positioned on an element node, it advances the reader to the next position. If positioned on an attribute, it does not advance the reader. | |
Save | Saves the XML document to the specified location. | save |
WriteContentTo (Overrides XMLNode:: WriteContentTo ) | Saves the contents of the XmlDocument node to the specified XmlWriter . | |
WriteTo (Overrides XMLNode:: WriteTo ) | Saves the XmlDocument node to the specified XmlWriter . |
only for RuBoard |