System::Xml::XmlDocument class
Contents
[
Hide
]XmlDocument class
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in a document.
class XmlDocument : public System::Xml::XmlNode
Methods
Method | Description |
---|---|
CloneNode(bool) override | Creates a duplicate of this node. |
CreateAttribute(const String&) | Creates an XmlAttribute with the specified name. |
CreateAttribute(const String&, const String&) | Creates an XmlAttribute with the specified qualified name and XmlNode::get_NamespaceURI. |
virtual CreateAttribute(const String&, const String&, const String&) | Creates an XmlAttribute with the specified XmlNode::get_Prefix, XmlDocument::get_LocalName, and XmlNode::get_NamespaceURI. |
virtual CreateCDataSection(const String&) | Creates an XmlCDataSection containing the specified data. |
virtual CreateComment(const String&) | Creates an XmlComment containing the specified data. |
virtual CreateDocumentFragment() | Creates an XmlDocumentFragment. |
virtual CreateDocumentType(const String&, const String&, const String&, const String&) | Returns a new XmlDocumentType object. |
CreateElement(const String&) | Creates an element with the specified name. |
CreateElement(const String&, const String&) | Creates an XmlElement with the qualified name and XmlNode::get_NamespaceURI. |
virtual CreateElement(const String&, const String&, const String&) | Creates an element with the specified XmlNode::get_Prefix, XmlDocument::get_LocalName, and XmlNode::get_NamespaceURI. |
virtual CreateEntityReference(const String&) | Creates an XmlEntityReference with the specified name. |
CreateNavigator() override | Creates a new XPathNavigator object for navigating this document. |
virtual CreateNode(XmlNodeType, const String&, const String&, const String&) | Creates a XmlNode with the specified XmlNodeType, XmlNode::get_Prefix, XmlDocument::get_Name, and XmlNode::get_NamespaceURI. |
virtual CreateNode(const String&, const String&, const String&) | Creates an XmlNode with the specified node type, XmlDocument::get_Name, and XmlNode::get_NamespaceURI. |
virtual CreateNode(XmlNodeType, const String&, const String&) | Creates an XmlNode with the specified XmlNodeType, XmlDocument::get_Name, and XmlNode::get_NamespaceURI. |
virtual CreateProcessingInstruction(const String&, const String&) | Creates an XmlProcessingInstruction with the specified name and data. |
virtual CreateSignificantWhitespace(const String&) | Creates an XmlSignificantWhitespace node. |
virtual CreateTextNode(const String&) | Creates an XmlText with the specified text. |
virtual CreateWhitespace(const String&) | Creates an XmlWhitespace node. |
virtual CreateXmlDeclaration(const String&, const String&, const String&) | Creates an XmlDeclaration node with the specified values. |
get_BaseURI() override | Returns the base URI of the current node. |
get_DocumentElement() | Returns the root XmlElement for the document. |
virtual get_DocumentType() | Returns the node containing the DOCTYPE declaration. |
get_Implementation() | Returns the XmlImplementation object for the current document. |
get_InnerXml() override | Returns the markup representing the children of the current node. |
get_IsReadOnly() override | Returns a value indicating whether the current node is read-only. |
get_LocalName() override | Returns the local name of the node. |
get_Name() override | Returns the qualified name of the node. |
get_NameTable() | Returns the XmlNameTable associated with this implementation. |
get_NodeType() override | Returns the type of the current node. |
get_OwnerDocument() override | Returns the XmlDocument to which the current node belongs. |
get_PreserveWhitespace() | Returns a value indicating whether to preserve white space in element content. |
get_SchemaInfo() override | Returns the Post-Schema-Validation-Infoset (PSVI) of the node. |
get_Schemas() | Returns the XmlSchemaSet object associated with this XmlDocument. |
virtual GetElementById(String) | Returns the XmlElement with the specified ID. |
virtual GetElementsByTagName(String) | Returns an XmlNodeList containing a list of all descendant elements that match the specified name. |
virtual GetElementsByTagName(String, String) | Returns an XmlNodeList containing a list of all descendant elements that match the specified XmlDocument::get_LocalName and XmlNode::get_NamespaceURI. |
virtual ImportNode(SharedPtr<XmlNode>, bool) | Imports a node from another document to the current document. |
virtual Load(String) | Loads the XML document from the specified URL. |
virtual Load(SharedPtr<IO::Stream>) | Loads the XML document from the specified stream. |
virtual Load(SharedPtr<IO::TextReader>) | Loads the XML document from the specified TextReader. |
virtual Load(SharedPtr<XmlReader>) | Loads the XML document from the specified XmlReader. |
virtual LoadXml(String) | Loads the XML document from the specified string. |
virtual ReadNode(SharedPtr<XmlReader>) | Creates an XmlNode object based on the information in the XmlReader. The reader must be positioned on a node or attribute. |
virtual Save(String) | Saves the XML document to the specified file. If the specified file exists, this method overwrites it. |
virtual Save(SharedPtr<IO::Stream>) | Saves the XML document to the specified stream. |
virtual Save(SharedPtr<IO::TextWriter>) | Saves the XML document to the specified TextWriter. |
virtual Save(SharedPtr<XmlWriter>) | Saves the XML document to the specified XmlWriter. |
set_InnerText(String) override | Throws an InvalidOperationException in all cases. |
set_InnerXml(String) override | Sets the markup representing the children of the current node. |
set_PreserveWhitespace(bool) | Sets a value indicating whether to preserve white space in element content. |
set_Schemas(const SharedPtr<Schema::XmlSchemaSet>&) | Sets the XmlSchemaSet object associated with this XmlDocument. |
virtual set_XmlResolver(SharedPtr<System::Xml::XmlResolver>) | Sets the XmlResolver to use for resolving external resources. |
Validate(Schema::ValidationEventHandler) | Validates the XmlDocument against the XML Schema Definition Language (XSD) schemas contained in the XmlDocument::get_Schemas list. |
Validate(Schema::ValidationEventHandler, const SharedPtr<XmlNode>&) | Validates the XmlNode object specified against the XML Schema Definition Language (XSD) schemas in the XmlDocument::get_Schemas list. |
WriteContentTo(const SharedPtr<XmlWriter>&) override | Saves all the children of the XmlDocument node to the specified XmlWriter. |
WriteTo(const SharedPtr<XmlWriter>&) override | Saves the XmlDocument node to the specified XmlWriter. |
XmlDocument() | Initializes a new instance of the XmlDocument class. |
XmlDocument(const SharedPtr<XmlNameTable>&) | Initializes a new instance of the XmlDocument class with the specified XmlNameTable. |
Typedefs
Typedef | Description |
---|---|
Ptr | An alias for shared pointer to an instance of this class. |
Remarks
Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
See Also
- Class XmlNode
- Namespace System::Xml
- Library Aspose.Page for C++