dancer-xml-0.8.2.1/dancer-xml.h File Reference

#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_elementdxml_read_xml (FILE *f)
 Read the XML file and load it as the element structure.
dxml_elementdxml_next_notPCDATA (dxml_element *e)
 Obtain the next non-PCDATA, i.e.
dxml_elementdxml_get_element_byname (dxml_element *e, const char *name)
 Get the pointer to element by name.
dxml_elementdxml_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

Function Documentation

void dxml_dump_element dxml_element e  ) 
 

For debug, dump the element contents.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
e  element
path  path to PCDATA

dxml_element* dxml_next_notPCDATA dxml_element e  ) 
 

Obtain the next non-PCDATA, i.e.

element

Parameters:
e  element pointer

dxml_element* dxml_read_xml FILE *  f  ) 
 

Read the XML file and load it as the element structure.

Returns:
NULL on fail.
Parameters:
f  File pointer to the XML file


Generated on Mon Apr 10 22:46:30 2006 for dancer-xml Reference by  doxygen 1.4.6