XmlDocument

Overview

XmlDocument is a class in Aspose.Cells FOSS for C++.

Represents a parsed XML document.

This class provides 5 methods for working with XmlDocument objects in C++ programs. Available methods include: Build, GetRoot, IsNull, Load, SaveToUtf8. All public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

Methods

SignatureDescription
IsNull()boolReturns true if null is set.
Load(data: std::vector<uint8_t>)XmlDocumentParses XML from UTF-8 bytes, preserving whitespace.
Build(root: XmlElement)XmlDocumentBuilds an XML document with the given root element and optional declaration.
GetRoot()XmlElementGets the root element.
SaveToUtf8()std::vector<uint8_t>Serializes this document to UTF-8 encoded XML bytes (XML declaration + root element).

See Also

 English