dancer-xml Reference
0.8.2.1
|
#include <stdio.h>
Data Structures | |
struct | dxml_attribute |
Structure representing attributes within element. More... | |
struct | dxml_element |
Structure holding #PCDATA or ELEMENT. More... | |
Typedefs | |
typedef struct dxml_attribute | dxml_attribute |
Structure representing attributes within element. More... | |
typedef struct dxml_element | 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. More... | |
dxml_element * | dxml_next_notPCDATA (dxml_element *e) |
Obtain the next non-PCDATA, i.e. More... | |
dxml_element * | dxml_get_element_byname (dxml_element *e, const char *name) |
Get the pointer to element by name. More... | |
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. More... | |
void | dxml_dump_element (dxml_element *e) |
For debug, dump the element contents. More... | |
char * | dxml_get_PCDATA_bysimplepath (dxml_element *e, const char *path) |
Obtain the PCDATA specified with a simple path, using name/name/name notation. More... | |
void | dxml_free_xml (dxml_element *e) |
free the allocated xml structure More... | |
typedef struct dxml_attribute dxml_attribute |
Structure representing attributes within element.
typedef struct dxml_element dxml_element |
Structure holding #PCDATA or ELEMENT.
<element attribute="data"> PCDATA </element>
void dxml_dump_element | ( | dxml_element * | e | ) |
For debug, dump the element contents.
e | content to be dumped |
References recurse_element().
Referenced by get_bookchapter(), get_itemizedlist(), and get_paratype().
void dxml_free_xml | ( | dxml_element * | e | ) |
free the allocated xml structure
References dxml_element::child, dxml_free_attrib(), dxml_free_xml(), dxml_element::element_attribute, dxml_element::element_name, and dxml_element::next.
Referenced by dxml_free_xml(), main(), process_file(), read_element(), and read_PCDATA().
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 |
References dxml_element::element_name, dxml_element::element_type_element, and dxml_element::next.
Referenced by dxml_get_element_bysimplepath_internal(), get_table(), main(), process_file(), and recursebook().
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 |
References dxml_get_element_bysimplepath_internal().
Referenced by dxml_get_element_bysimplepath_internal(), get_table(), main(), and print_kanrisha_info().
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 |
References dxml_element::child, dxml_get_element_bysimplepath_internal(), dxml_element::element_name, dxml_element::element_type_pcdata, and dxml_element::next.
Referenced by get_bookchapter(), get_PCDATA_bysimplepath_i(), get_table(), main(), and recursebook().
dxml_element* dxml_next_notPCDATA | ( | dxml_element * | e | ) |
Obtain the next non-PCDATA, i.e.
element
e | element pointer |
References dxml_next_notPCDATA(), dxml_element::element_type_pcdata, and dxml_element::next.
Referenced by dxml_next_notPCDATA().
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 |
References checkchar(), read_element(), and skipwhitechars().
Referenced by main(), process_file(), and read_open().