dancer-xml-0.8.2.1/loadxmlhelper.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dancer-xml.h"

Functions

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.
static dxml_elementdxml_get_element_bysimplepath_internal (dxml_element *e, char *path)
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.
char * dxml_get_PCDATA_bysimplepath (dxml_element *e, const char *path)
 Obtain the PCDATA specified with a simple path, using name/name/name notation.
static void space (int i)
static void recurse_attribute (dxml_attribute *a)
static void recurse_element (dxml_element *e, int level)
void dxml_dump_element (dxml_element *e)
 For debug, dump the element contents.

Detailed Description

Helper functions for processing the loaded XML file

Function Documentation

void dxml_dump_element ( dxml_element e  ) 

For debug, dump the element contents.

Parameters:
e  content to be dumped

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

static dxml_element* dxml_get_element_bysimplepath_internal ( dxml_element e,
char *  path 
) [static]

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

static void recurse_attribute ( dxml_attribute a  )  [static]

static void recurse_element ( dxml_element e,
int  level 
) [static]

static void space ( int  i  )  [static]


Generated on Fri Aug 24 02:35:47 2007 for dancer-xml Reference by  doxygen 1.5.3