#include <stdio.h>
Data Structures | |
struct | dxml_attribute |
Structure representing attributes within element. More... | |
struct | dxml_element |
Structure holding PCDATA or ELEMENT. More... | |
Functions | |
dxml_element * | dxml_read_xml (FILE *f) |
Read the XML file and load it as the element structure. | |
dxml_element * | dxml_next_notPCDATA (dxml_element *e) |
Obtain the next non-PCDATA, i.e. | |
dxml_element * | dxml_get_element_byname (dxml_element *e, const char *name) |
Get the pointer to element by name. | |
dxml_element * | dxml_get_element_bysimplepath (dxml_element *e, const char *path) |
Get the pointer to element by a simple path, using name/name/name notation. | |
void | dxml_dump_element (dxml_element *e) |
For debug, dump the element contents. | |
char * | dxml_get_PCDATA_bysimplepath (dxml_element *e, const char *path) |
Obtain the PCDATA specified with a simple path, using name/name/name notation. | |
void | dxml_free_xml (dxml_element *e) |
free the allocated xml structure |
void dxml_dump_element | ( | dxml_element * | e | ) |
For debug, dump the element contents.
e | content to be dumped |
void dxml_free_xml | ( | dxml_element * | e | ) |
free the allocated xml structure
dxml_element* dxml_get_element_byname | ( | dxml_element * | e, | |
const char * | name | |||
) |
Get the pointer to element by name.
e | element |
name | The name of the element |
dxml_element* dxml_get_element_bysimplepath | ( | dxml_element * | e, | |
const char * | path | |||
) |
Get the pointer to element by a simple path, using name/name/name notation.
e | element |
char* dxml_get_PCDATA_bysimplepath | ( | dxml_element * | e, | |
const char * | path | |||
) |
Obtain the PCDATA specified with a simple path, using name/name/name notation.
e | element |
path | path to PCDATA |
dxml_element* dxml_next_notPCDATA | ( | dxml_element * | e | ) |
Obtain the next non-PCDATA, i.e.
element
e | element pointer |
dxml_element* dxml_read_xml | ( | FILE * | f | ) |
Read the XML file and load it as the element structure.
f | File pointer to the XML file |