RapidXML.h
Go to the documentation of this file.
93 Node* appendNode(Node* parent, const char* name, const char* value = nullptr, size_t name_size = 0,
98 return appendNode(parent, name.c_str(), value ? value.c_str() : nullptr, name.length(), value.length());
103 template <typename TString, typename TValue> Node* appendNode(Node* parent, const TString& name, const TValue& value)
117 Attribute* appendAttribute(Node* node, const char* name, const char* value, size_t name_size = 0,
122 return appendAttribute(node, name.c_str(), value ? value.c_str() : nullptr, name.length(), value.length());
174 Node* getNode(const Document& doc, const char* path, const char* ns = nullptr, size_t ns_len = 0);
Node * getNode(Node *node, const char *path, const char *ns, size_t ns_len=0)
Node * insertDeclaration(Document &doc)
Add a declaration to the document if there isn't one already.
bool deserialize(Document &doc, char *content)
De-serialise XML text into a document.
Definition: RapidXML.h:34
String getValue(const Node *node, const char *name, size_t name_size, const char *ns=nullptr, size_t ns_size=0)
String getAttribute(const Node *node, const char *name, size_t name_size)
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:616
size_t serialize(const Node &node, String &buffer, bool pretty=false)
Serialize XML text and append to string buffer.
Attribute * appendAttribute(Node *node, const char *name, const char *value, size_t name_size=0, size_t value_size=0)
Append an attribute.
Node * appendNode(Node *parent, const char *name, const char *value=nullptr, size_t name_size=0, size_t value_size=0)
Append a child element with optional value.
DECLARE_FSTR(FS_xmlns_xml)
size_t length(void) const
Obtain the String length in characters, excluding NUL terminator.
Definition: WString.h:243