Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

wbxml_tree_clb_xml.h File Reference

WBXML Tree Callbacks for XML Parser (Expat). More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void wbxml_tree_clb_xml_doctype_decl (void *ctx, const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset)
 Doctype Declaration Callback.

void wbxml_tree_clb_xml_start_element (void *ctx, const XML_Char *localName, const XML_Char **attrs)
 Start Element Callback.

void wbxml_tree_clb_xml_end_element (void *ctx, const XML_Char *localName)
 End Element Callback.

void wbxml_tree_clb_xml_start_cdata (void *ctx)
 Start of CDATA Section Callback.

void wbxml_tree_clb_xml_end_cdata (void *ctx)
 End of CDATA Section Callback.

void wbxml_tree_clb_xml_characters (void *ctx, const XML_Char *ch, int len)
 Characters Callback.

void wbxml_tree_clb_xml_pi (void *ctx, const XML_Char *target, const XML_Char *data)
 Processing Instruction Callback.


Detailed Description

WBXML Tree Callbacks for XML Parser (Expat).

Author:
Aymerick Jéhanne <libwbxml@jehanne.org>
Date:
03/03/11

Definition in file wbxml_tree_clb_xml.h.


Function Documentation

void wbxml_tree_clb_xml_characters void *    ctx,
const XML_Char *    ch,
int    len
 

Characters Callback.

Parameters:
ctx User data
ch The characters array
len The number of characters to read from the array

Definition at line 282 of file wbxml_tree_clb_xml.c.

References add_node_to_tree(), WBXMLTreeNode_s::content, WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, NULL, WBXMLTreeNode_s::parent, WBXMLTreeClbCtx_s::skip_lvl, wbxml_buffer_create, WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_OK, wbxml_tree_node_create(), wbxml_tree_node_destroy(), and WBXML_TREE_TEXT_NODE.

void wbxml_tree_clb_xml_doctype_decl void *    ctx,
const XML_Char *    doctypeName,
const XML_Char *    sysid,
const XML_Char *    pubid,
int    has_internal_subset
 

Doctype Declaration Callback.

Parameters:
ctx User data
doctypeName Doctype Name
sysid System ID
pubid Public ID
has_internal_subset Non-zero if the DOCTYPE declaration has an internal subset

Definition at line 49 of file wbxml_tree_clb_xml.c.

References WBXMLTree_s::lang, NULL, WBXMLTreeClbCtx_s::tree, WB_UTINY, wbxml_tables_get_main(), wbxml_tables_search_table(), and WBXML_WARNING.

void wbxml_tree_clb_xml_end_cdata void *    ctx
 

End of CDATA Section Callback.

Todo:
wbxml_tree_clb_xml_end_cdata()

Definition at line 267 of file wbxml_tree_clb_xml.c.

References WBXMLTreeClbCtx_s::error, WBXMLTreeClbCtx_s::skip_lvl, and WBXML_OK.

void wbxml_tree_clb_xml_end_element void *    ctx,
const XML_Char *    localName
 

End Element Callback.

Parameters:
ctx User data
localName The local tag name

Definition at line 163 of file wbxml_tree_clb_xml.c.

References add_node_to_tree(), WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, WBXMLTreeClbCtx_s::input_buff, NULL, WBXMLTreeNode_s::parent, WBXMLTree_s::root, WBXMLTreeClbCtx_s::skip_lvl, WBXMLTreeClbCtx_s::skip_start, WBXMLTreeClbCtx_s::tree, WBXMLTreeNode_s::tree, wbxml_buffer_append_cstr, wbxml_buffer_create, wbxml_buffer_destroy(), wbxml_buffer_get_cstr(), WBXML_DEBUG, WBXML_ERROR_INTERNAL, WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_OK, WBXML_STRCMP, wbxml_tree_destroy(), wbxml_tree_from_xml(), wbxml_tree_node_create(), WBXML_TREE_TREE_NODE, WBXMLError, and WBXMLTreeClbCtx_s::xml_parser.

void wbxml_tree_clb_xml_pi void *    ctx,
const XML_Char *    target,
const XML_Char *    data
 

Processing Instruction Callback.

Todo:
wbxml2xml_clb_pi()

Definition at line 316 of file wbxml_tree_clb_xml.c.

References WBXMLTreeClbCtx_s::error, WBXMLTreeClbCtx_s::skip_lvl, and WBXML_OK.

void wbxml_tree_clb_xml_start_cdata void *    ctx
 

Start of CDATA Section Callback.

Todo:
wbxml_tree_clb_xml_start_cdata()

Definition at line 251 of file wbxml_tree_clb_xml.c.

References WBXMLTreeClbCtx_s::error, WBXMLTreeClbCtx_s::skip_lvl, and WBXML_OK.

void wbxml_tree_clb_xml_start_element void *    ctx,
const XML_Char *    localName,
const XML_Char **    attrs
 

Start Element Callback.

Parameters:
ctx User data
localName The local tag name
attrs The attributes attached to the element

Definition at line 73 of file wbxml_tree_clb_xml.c.

References add_node_to_tree(), WBXMLTreeNode_s::attrs, construct_attribute_list(), WBXMLTreeClbCtx_s::current, WBXMLTreeClbCtx_s::error, WBXMLTree_s::lang, WBXMLTreeNode_s::name, NULL, WBXMLTreeClbCtx_s::skip_lvl, WBXMLTreeClbCtx_s::skip_start, WBXMLTreeClbCtx_s::tree, WB_UTINY, WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_ERROR_UNKNOWN_XML_LANGUAGE, WBXML_OK, WBXML_STRCMP, wbxml_tables_get_main(), wbxml_tables_get_tag_from_xml(), wbxml_tables_search_table(), wbxml_tag_create_literal(), wbxml_tag_create_token(), wbxml_tag_destroy(), WBXML_TREE_ELEMENT_NODE, wbxml_tree_node_create(), wbxml_tree_node_destroy(), and WBXMLTreeClbCtx_s::xml_parser.


Generated on Mon Nov 24 20:09:46 2003 for WBXML Library by doxygen1.3-rc1