#include <ImportXML.h>
Public Types | |
enum class | Mode : uint8_t { Compact , KeepFormatting } |
Public Member Functions | |
ImportXML ()=default | |
XMLDocType & | docType () |
void | indentSpaces (int i) |
void | parse (const SNode &node, const char *_buffer, Mode formatting=Mode::Compact) |
XML document.
Represents the entire XML document. It provides access to document root node, which includes all nodes in XML document tree.
|
strong |
|
default |
Constructs an empty document, without doctype.
|
inline |
Return doctype of document.
|
inline |
Set indentation in save, defaults to 2
i | New indent spaces |
void sptk::xdoc::ImportXML::parse | ( | const SNode & | node, |
const char * | _buffer, | ||
Mode | formatting = Mode::Compact |
||
) |
Load document from buffer.
_buffer | Source buffer |