#include <ioxmlparser.h>
XML parser class. Use this class to read an XML file into memory or write an XML file to disc.
Static Public Member Functions | |
static MAXON_METHOD Result< IoXmlNodeInterface * > | ReadDocument (const Url &xmlFile, Int &line) |
static MAXON_METHOD Result< IoXmlNodeInterface * > | ReadDocument (const Char *xmlFile, Int length, Int &line) |
static MAXON_METHOD Result< void > | WriteDocument (const Url &file, const IoXmlNodeRef &rootNode, Bool tabs, const Char *header) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (IoXmlParser, MAXON_REFERENCE_STATIC, "net.maxon.interface.ioxmlparser") | |
|
private |
|
static |
Reads an XML document and transforms it into a memory representation.
[in] | xmlFile | Input path of the file. |
[out] | line | Line number in which an error occurred. This value will be zero if error is not XMLERROR::PARSE. |
|
static |
Reads an XML document and transforms it into a memory representation.
[in] | xmlFile | Input memory block. |
[in] | length | Length of the input block. |
[out] | line | Line number in which an error occurred. This value will be zero if error is not XMLERROR::PARSE. |
|
static |
Writes an XML document.
[in] | file | Output path of the file. |
[in] | rootNode | Root node of the XML document in memory. |
[in] | tabs | If true a tab stop will be written instead of two spaces for indentation. |
[in] | header | Can be nullptr. If provided, this text will be written as header (the first line) instead of the regular header. |