|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Data Structures | |
| struct | CMUTIL_XmlNode |
| XML node manipulation. More... | |
Enumerations | |
| enum | CMXmlNodeKind { CMXmlNodeUnknown = 0 , CMXmlNodeText , CMXmlNodeTag } |
| The kind of XML node. More... | |
Functions | |
| CMUTIL_XmlNode * | CMUTIL_XmlParse (CMUTIL_String *str) |
| Parse an XML string into an XML node tree. | |
| CMUTIL_XmlNode * | CMUTIL_XmlParseString (const char *xmlstr, size_t len) |
| Parse an XML string into an XML node tree. | |
| CMUTIL_XmlNode * | CMUTIL_XmlParseFile (const char *fpath) |
| Parse an XML file into an XML node tree. | |
| CMUTIL_XmlNode * | CMUTIL_XmlNodeCreate (CMXmlNodeKind type, const char *tagname) |
| Create a new XML node with the specified type and tag name. | |
| CMUTIL_XmlNode * | CMUTIL_XmlNodeCreateWithLen (CMXmlNodeKind type, const char *tagname, size_t len) |
| Create a new XML node with the specified type and tag name of the given length. | |
| enum CMXmlNodeKind |
| CMUTIL_XmlNode * CMUTIL_XmlParse | ( | CMUTIL_String * | str | ) |
Parse an XML string into an XML node tree.
The caller is responsible for destroying the returned XML node tree using the Destroy method of CMUTIL_XmlNode.
| str | The XML string to parse. |
| CMUTIL_XmlNode * CMUTIL_XmlParseString | ( | const char * | xmlstr, |
| size_t | len | ||
| ) |
Parse an XML string into an XML node tree.
The caller is responsible for destroying the returned XML node tree using the Destroy method of CMUTIL_XmlNode.
| xmlstr | The XML string to parse. |
| len | The length of the XML string. |
| CMUTIL_XmlNode * CMUTIL_XmlParseFile | ( | const char * | fpath | ) |
Parse an XML file into an XML node tree.
The caller is responsible for destroying the returned XML node tree using the Destroy method of CMUTIL_XmlNode.
| fpath | The path to the XML file to parse. |
| CMUTIL_XmlNode * CMUTIL_XmlNodeCreate | ( | CMXmlNodeKind | type, |
| const char * | tagname | ||
| ) |
Create a new XML node with the specified type and tag name.
The caller is responsible for destroying the returned XML node using the Destroy method of CMUTIL_XmlNode.
| type | The type of the XML node (e.g., CMXmlNodeTag, CMXmlNodeText). |
| tagname | The tag name of the XML node. |
| CMUTIL_XmlNode * CMUTIL_XmlNodeCreateWithLen | ( | CMXmlNodeKind | type, |
| const char * | tagname, | ||
| size_t | len | ||
| ) |
Create a new XML node with the specified type and tag name of the given length.
The caller is responsible for destroying the returned XML node using the Destroy method of CMUTIL_XmlNode.
| type | The type of the XML node (e.g., CMXmlNodeTag, CMXmlNodeText). |
| tagname | The tag name of the XML node. |
| len | The length of the tag name. |