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

wbxml_parser.c File Reference

WBXML Parser - Parse a WBXML document and call user defined Callbacks. More...

#include <stdlib.h>
#include <string.h>
#include "wbxml.h"

Include dependency graph for wbxml_parser.c:

Include dependency graph

Go to the source code of this file.

Compounds

struct  WBXMLParser_s
 The WBXML Parser. More...


Defines

#define WBXML_PARSER_MALLOC_BLOCK   5000
#define WBXML_PARSER_STRING_TABLE_MALLOC_BLOCK   200
#define WBXML_PARSER_ATTR_VALUE_MALLOC_BLOCK   100
#define WBXML_PARSER_BEST_EFFORT   1
#define WBXML_PARSER_UNKNOWN_STRING   ((WB_UTINY *)"unknown")
#define WBXML_PARSER_MAX_ENTITY_CODE   999999
#define CHECK_ERROR   if (ret != WBXML_OK) return ret;

Typedefs

typedef enum WBXMLTokenType_e WBXMLTokenType
 The WBXML Application Token types.


Enumerations

enum  WBXMLTokenType_e { WBXML_TAG_TOKEN, WBXML_ATTR_TOKEN }
 The WBXML Application Token types. More...


Functions

void wbxml_parser_reinit (WBXMLParser *parser)
 Reinitialize a WBXML Parser.

unsigned char is_token (WBXMLParser *parser, unsigned char token)
 Check if current byte a specified WBXML token.

unsigned char is_literal (WBXMLParser *parser)
 Check if current byte is a WBXML literalTag token.

unsigned char is_attr_value (WBXMLParser *parser)
 Check if next token to parse is an Attribute Value.

unsigned char is_string (WBXMLParser *parser)
 Check if current byte is a string.

unsigned char is_extension (WBXMLParser *parser)
 Check if current byte is an extension.

unsigned char check_public_id (WBXMLParser *parser)
 Check the Public ID.

WBXMLError parse_version (WBXMLParser *parser)
 Parse WBXML version.

WBXMLError parse_publicid (WBXMLParser *parser)
 Parse WBXML public id.

WBXMLError parse_charset (WBXMLParser *parser)
 Parse WBXML charset.

WBXMLError parse_strtbl (WBXMLParser *parser)
 Parse WBXML string table.

WBXMLError parse_body (WBXMLParser *parser)
 Parse WBXML body.

WBXMLError parse_pi (WBXMLParser *parser)
 Parse WBXML pi.

WBXMLError parse_element (WBXMLParser *parser)
 Parse WBXML element.

void free_attrs_table (WBXMLAttribute **attrs)
 Free a (WBXMLAttribute *) table.

WBXMLError parse_switch_page (WBXMLParser *parser, WBXMLTokenType code_space)
 Parse WBXML switchPage.

WBXMLError parse_stag (WBXMLParser *parser, unsigned char *tag, WBXMLTag **element)
 Parse WBXML stag.

WBXMLError parse_tag (WBXMLParser *parser, unsigned char *tag, WBXMLTag **element)
 Parse WBXML Application Token (tag).

WBXMLError parse_attribute (WBXMLParser *parser, WBXMLAttribute **attr)
 Parse WBXML attribute.

WBXMLError parse_content (WBXMLParser *parser, unsigned char **content, int *len, unsigned char *static_content)
 Parse WBXML content.

WBXMLError parse_string (WBXMLParser *parser, unsigned char **str, int *len)
 Parse WBXML string.

WBXMLError parse_extension (WBXMLParser *parser, WBXMLTokenType code_space, unsigned char **ext, int *len)
 Parse WBXML extension.

WBXMLError parse_entity (WBXMLParser *parser, unsigned char **entity, int *len)
 Parse WBXML entity.

WBXMLError parse_opaque (WBXMLParser *parser, unsigned char **data, int *len)
 Parse WBXML opaque.

WBXMLError parse_literal (WBXMLParser *parser, unsigned char *tag, unsigned char **result)
 Parse WBXML literalTag.

WBXMLError parse_attr_start (WBXMLParser *parser, WBXMLAttributeName **name, unsigned char **value)
 Parse WBXML attrStart.

WBXMLError parse_attr_value (WBXMLParser *parser, unsigned char **value, int *len, unsigned char *static_value)
 Parse WBXML attrValue.

WBXMLError parse_termstr (WBXMLParser *parser, unsigned char **str, int *len)
 Parse WBXML termstr.

WBXMLError parse_inline (WBXMLParser *parser, unsigned char **str, int *len)
 Parse WBXML inline.

WBXMLError parse_tableref (WBXMLParser *parser, unsigned char **str, int *len)
 Parse WBXML tableref.

WBXMLError parse_entcode (WBXMLParser *parser, unsigned int *result)
 Parse WBXML entcode.

WBXMLError get_strtbl_reference (WBXMLParser *parser, unsigned int index, unsigned char **str, int *len)
 Get a string from String Table.

WBXMLError parse_uint8 (WBXMLParser *parser, unsigned char *result)
 Parse UINT8.

WBXMLError parse_mb_uint32 (WBXMLParser *parser, unsigned int *result)
 Parse a MultiByte UINT32.

WBXMLError decode_datetime (WBXMLBuffer *buff)
WBXMLError decode_opaque_content (WBXMLParser *parser, unsigned char **data, int *len, unsigned char *static_content)
 Decode an Opaque Content buffer.

WBXMLParserwbxml_parser_create (void)
 Create a WBXML Parser.

void wbxml_parser_destroy (WBXMLParser *parser)
 Destroy a WBXML Parser.

WBXMLError wbxml_parser_parse (WBXMLParser *parser, unsigned char *wbxml, unsigned int wbxml_len)
void wbxml_parser_set_user_data (WBXMLParser *parser, void *user_data)
 Set User Data for a WBXML Parser.

void wbxml_parser_set_content_handler (WBXMLParser *parser, WBXMLContentHandler *content_handler)
 Set Content Handler for a WBXML Parser.

void wbxml_parser_set_main_table (WBXMLParser *parser, const WBXMLLangEntry *main_table)
 Set Main WBXML Languages Table.

unsigned char wbxml_parser_set_language (WBXMLParser *parser, WBXMLLanguage lang)
 Force to parse the Document of a given Language.

unsigned int wbxml_parser_get_wbxml_public_id (WBXMLParser *parser)
 Get WBXML Public ID.

const unsigned char * wbxml_parser_get_xml_public_id (WBXMLParser *parser)
 Get XML Public ID.

WBXMLVersion wbxml_parser_get_wbxml_version (WBXMLParser *parser)
 Get WBXML Version.

int wbxml_parser_get_current_byte_index (WBXMLParser *parser)
 Return current parsing position in WBXML.


Detailed Description

WBXML Parser - Parse a WBXML document and call user defined Callbacks.

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

Todo:
Handle correctly charset
Note:
WBXML Versions Differences:

Definition in file wbxml_parser.c.


Define Documentation

#define CHECK_ERROR   if (ret != WBXML_OK) return ret;
 

Definition at line 169 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

#define WBXML_PARSER_ATTR_VALUE_MALLOC_BLOCK   100
 

Definition at line 52 of file wbxml_parser.c.

#define WBXML_PARSER_BEST_EFFORT   1
 

Set it to '1' for Best Effort mode

Definition at line 55 of file wbxml_parser.c.

#define WBXML_PARSER_MALLOC_BLOCK   5000
 

Definition at line 50 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

#define WBXML_PARSER_MAX_ENTITY_CODE   999999
 

If you want to modify this define, change the 'entcode' variable length in parse_entity() too please

Definition at line 61 of file wbxml_parser.c.

#define WBXML_PARSER_STRING_TABLE_MALLOC_BLOCK   200
 

Definition at line 51 of file wbxml_parser.c.

#define WBXML_PARSER_UNKNOWN_STRING   ((WB_UTINY *)"unknown")
 

For unknown Tag Name or Attribute Name (in Best Effort Mode)

Definition at line 58 of file wbxml_parser.c.


Typedef Documentation

typedef enum WBXMLTokenType_e WBXMLTokenType
 

The WBXML Application Token types.


Enumeration Type Documentation

enum WBXMLTokenType_e
 

The WBXML Application Token types.

Enumeration values:
WBXML_TAG_TOKEN  Tag token
WBXML_ATTR_TOKEN  Attribute token

Definition at line 67 of file wbxml_parser.c.


Function Documentation

unsigned char check_public_id WBXMLParser   parser [static]
 

Check the Public ID.

Parameters:
parser The WBXML Parser
Returns:
TRUE if Public ID is found, FALSE otherwise

Definition at line 510 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

WBXMLError decode_datetime WBXMLBuffer   buff [static]
 

WBXMLError decode_opaque_content WBXMLParser   parser,
unsigned char **    data,
int *    len,
unsigned char *    static_content
[static]
 

Decode an Opaque Content buffer.

Parameters:
parser The WBXML Parser
data The Opaque data buffer
len The Opaque data buffer length
static_content [out] Is this a static buffer ?
Returns:
WBXML_OK if OK, another error code otherwise
Note:
Used for:
  • WV 1.1 / 1.2

Definition at line 2072 of file wbxml_parser.c.

void free_attrs_table WBXMLAttribute **    attrs [static]
 

Free a (WBXMLAttribute *) table.

Parameters:
attrs The table to ree

Definition at line 948 of file wbxml_parser.c.

WBXMLError get_strtbl_reference WBXMLParser   parser,
unsigned int    index,
unsigned char **    str,
int *    len
[static]
 

Get a string from String Table.

Parameters:
parser The WBXML Parser
index Index of string in String Table
str The resulting parsed string
len The resulting parsed string length
Returns:
WBXML_OK if OK, an error code otherwise
Todo:
It can be a simple Warning

Bug:
"String representation is dependent on the character document encoding and should not be presumed to include NULL termination"

Definition at line 1878 of file wbxml_parser.c.

unsigned char is_attr_value WBXMLParser   parser [static]
 

Check if next token to parse is an Attribute Value.

Parameters:
parser The WBXML Parser
Returns:
TRUE if next token to parse is an Attribute Value, FALSE otherwise
Note:
attrValue = ([switchPage] ATTRVALUE | string | extension | entity | opaque)

Definition at line 439 of file wbxml_parser.c.

unsigned char is_extension WBXMLParser   parser [static]
 

Check if current byte is an extension.

Parameters:
parser The WBXML Parser
Returns:
TRUE if current byte is an extension, FALSE otherwise

Definition at line 485 of file wbxml_parser.c.

unsigned char is_literal WBXMLParser   parser [static]
 

Check if current byte is a WBXML literalTag token.

Parameters:
parser The WBXML Parser
Returns:
TRUE is current byte is a literalTag token, FALSE otherwise

Definition at line 422 of file wbxml_parser.c.

unsigned char is_string WBXMLParser   parser [static]
 

Check if current byte is a string.

Parameters:
parser The WBXML Parser
Returns:
TRUE if current byte is a string, FALSE otherwise

Definition at line 474 of file wbxml_parser.c.

unsigned char is_token WBXMLParser   parser,
unsigned char    token
[static]
 

Check if current byte a specified WBXML token.

Parameters:
parser The WBXML Parser
token The WBXML token
Returns:
TRUE is current byte is the specified token, FALSE otherwise

Definition at line 406 of file wbxml_parser.c.

WBXMLError parse_attr_start WBXMLParser   parser,
WBXMLAttributeName **    name,
unsigned char **    value
[static]
 

Parse WBXML attrStart.

Parameters:
parser The WBXML Parser
name The Attribute Name parsed
value The Attribute Value associated, if any
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
attrStart = ([switchPage] ATTRSTART) | ( LITERAL index )

Todo:
Return Warning if 'literal' is different from 'WBML_TOKEN_MASK' (because it MUST be a 'LITERAL' token, not LITERAL_A, nor LITERAL_C, nor LITERAL_AC

Definition at line 1611 of file wbxml_parser.c.

WBXMLError parse_attr_value WBXMLParser   parser,
unsigned char **    value,
int *    len,
unsigned char *    static_value
[static]
 

Parse WBXML attrValue.

Parameters:
parser [in] The WBXML Parser
value [out] The resulting Value parsed
len [out] Resulting Value length
static_value [out] Is this a static string ?
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
attrValue = ([switchPage] ATTRVALUE) | string | extension | entity | opaque

Definition at line 1707 of file wbxml_parser.c.

WBXMLError parse_attribute WBXMLParser   parser,
WBXMLAttribute **    attr
[static]
 

Parse WBXML attribute.

Parameters:
parser The WBXML Parser
attr The resulting attribute parsed
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
attribute = attrStart *attrValue
Warning:
The attr_value parameter MUST be freed by caller

Definition at line 1087 of file wbxml_parser.c.

WBXMLError parse_body WBXMLParser   parser [static]
 

Parse WBXML body.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
body = *pi element *pi

Definition at line 724 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

WBXMLError parse_charset WBXMLParser   parser [static]
 

Parse WBXML charset.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
charset = mb_u_int32

"The binary XML format contains a representation of the XML document character encoding. This is the WBXML equivalent of the XML document format encoding attribute, which is specified in the ?xml processing instruction. The character set is encoded as a multi-byte positive integer value, representing the IANA-assigned MIB number for a character set. A value of zero indicates an unknown document encoding. In the case of an unknown encoding, transport meta-information should be used to determine the character encoding. If transport meta-information is unavailable, the default encoding of UTF-8 should be assumed."

Definition at line 669 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

WBXMLError parse_content WBXMLParser   parser,
unsigned char **    content,
int *    len,
unsigned char *    static_content
[static]
 

Parse WBXML content.

Parameters:
parser The WBXML Parser
content Resulting parsed content, if content is not an Element
len Resulting parsed content length
static_content This boolen is set to TRUE if the resulting content is static and doesn't need to be freed by caller
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
content = element | string | extension | entity | pi | opaque

We have recurrency here !

Definition at line 1205 of file wbxml_parser.c.

WBXMLError parse_element WBXMLParser   parser [static]
 

Parse WBXML element.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
element = ([switchPage] stag) [ 1*attribute END ] [ *content END ]

Definition at line 830 of file wbxml_parser.c.

WBXMLError parse_entcode WBXMLParser   parser,
unsigned int *    result
[static]
 

Parse WBXML entcode.

Parameters:
parser [in] The WBXML Parser
result [out] The entcode parsed
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
entcode = mb_u_int32 // UCS-4 character code

Definition at line 1862 of file wbxml_parser.c.

WBXMLError parse_entity WBXMLParser   parser,
unsigned char **    entity,
int *    len
[static]
 

Parse WBXML entity.

Parameters:
parser The WBXML Parser
entity The resulting parsed entity (MUST BE FREED BY CALLER !)
len The resulting parsed entity length
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
entity = ENTITY entcode

http://www.w3.org/TR/wbxml/ : "The character entity token (ENTITY) encodes a numeric character entity. This has the same semantics as an XML numeric character entity (eg, &#32;). The mb_u_int32 refers to a character in the UCS-4 character encoding. All entities in the source XML document must be represented using either a string token (eg, STR_I or the ENTITY token."

Warning:
The resulting entity paramater MUST be freed by caller !

Definition at line 1476 of file wbxml_parser.c.

WBXMLError parse_extension WBXMLParser   parser,
WBXMLTokenType    code_space,
unsigned char **    ext,
int *    len
[static]
 

Parse WBXML extension.

Parameters:
parser The WBXML Parser
code_space The token code space
ext Resulting parsed extension
len Resulting parsed extension length
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
extension = [switchPage] (( EXT_I termstr ) | ( EXT_T index ) | EXT)

5.8.4.2 - The effect of a switchPage preceding an extension will depend upon where the extension appears. If switchPage appears in content, it will change the tag code page. Is switchPage appears in an attribute list, it will change the attribute code page.

Extensions tokens are explained in WML Specifications (WAP-191-WML-20000219-a.pdf - 14.1.1 & 14.3)

Warning:
The resulting ext paramater MUST be freed by caller !

Definition at line 1285 of file wbxml_parser.c.

WBXMLError parse_inline WBXMLParser   parser,
unsigned char **    str,
int *    len
[static]
 

Parse WBXML inline.

Parameters:
parser [in] The WBXML Parser
str [out] The resulting parsed string
len [out] The resulting parsed string length
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
inline = STR_I termstr

Definition at line 1817 of file wbxml_parser.c.

WBXMLError parse_literal WBXMLParser   parser,
unsigned char *    mask,
unsigned char **    result
[static]
 

Parse WBXML literalTag.

Parameters:
parser The WBXML Parser
mask Resulting tag mask (WBXML_TOKEN_MASK | WBXML_TOKEN_WITH_CONTENT | WBXML_TOKEN_WITH_ATTRS | (WBXML_TOKEN_WITH_CONTENT || WBXML_TOKEN_WITH_ATTRS))
result The resulting parsed literal
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
result = ( literalTag index ) literalTag = LITERAL | LITERAL_A | LITERAL_C | LITERAL_AC

Bug:
"String representation is dependent on the character document encoding and should not be presumed to include NULL termination"

Definition at line 1552 of file wbxml_parser.c.

WBXMLError parse_mb_uint32 WBXMLParser   parser,
unsigned int *    result
[static]
 

Parse a MultiByte UINT32.

Parameters:
parser The WBXML Parser
result The parsed MultiByte
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
mb_u_int32 = 32 bit unsigned integer, encoded in multi-byte format

Definition at line 1941 of file wbxml_parser.c.

WBXMLError parse_opaque WBXMLParser   parser,
unsigned char **    data,
int *    len
[static]
 

Parse WBXML opaque.

Parameters:
parser The WBXML Parser
data Resulting opaque data parsed
len Length of opaque data parsed
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
opaque = OPAQUE length *byte

length = mb_u_int32

Definition at line 1515 of file wbxml_parser.c.

WBXMLError parse_pi WBXMLParser   parser [static]
 

Parse WBXML pi.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
pi = PI attrStart *attrValue END

Definition at line 753 of file wbxml_parser.c.

WBXMLError parse_publicid WBXMLParser   parser [static]
 

Parse WBXML public id.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
publicid = mb_u_int32 | ( zero index )

index = mb_u_int32

Definition at line 633 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

WBXMLError parse_stag WBXMLParser   parser,
unsigned char *    tag,
WBXMLTag **    element
[static]
 

Parse WBXML stag.

Parameters:
parser The WBXML Parser
tag The parsed tag token
element The parsed element corresponding to token
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
stag = TAG | (literalTag index)

Definition at line 998 of file wbxml_parser.c.

WBXMLError parse_string WBXMLParser   parser,
unsigned char **    str,
int *    len
[static]
 

Parse WBXML string.

Parameters:
parser [in] The WBXML Parser
str [out] The resulting parsed string
len [out] The resulting parsed string length
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
string = inline | tableref

Definition at line 1257 of file wbxml_parser.c.

WBXMLError parse_strtbl WBXMLParser   parser [static]
 

Parse WBXML string table.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
strtbl = length *byte

length = mb_u_int32

Definition at line 687 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

WBXMLError parse_switch_page WBXMLParser   parser,
WBXMLTokenType    code_space
[static]
 

Parse WBXML switchPage.

Parameters:
parser The WBXML Parser
code_space The token code space
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
switchPage = SWITCH_PAGE pageindex

Definition at line 969 of file wbxml_parser.c.

WBXMLError parse_tableref WBXMLParser   parser,
unsigned char **    str,
int *    len
[static]
 

Parse WBXML tableref.

Parameters:
parser The WBXML Parser
str The resulting parsed string
len The resulting parsed string length
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
tableref = STR_T index

index = mb_u_int32

Definition at line 1837 of file wbxml_parser.c.

WBXMLError parse_tag WBXMLParser   parser,
unsigned char *    tag,
WBXMLTag **    element
[static]
 

Parse WBXML Application Token (tag).

Parameters:
parser The WBXML Parser
tag The parsed token tag
element The parsed element (the text element corresponding to token)
Returns:
WBXML_OK if parsing is OK, an error code otherwise

Definition at line 1027 of file wbxml_parser.c.

WBXMLError parse_termstr WBXMLParser   parser,
unsigned char **    str,
int *    len
[static]
 

Parse WBXML termstr.

Parameters:
parser [in] The WBXML Parser
str [out] The resulting parsed string
len [out] The resulting parsed length
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
termstr = charset-dependent string with termination

Bug:
"String representation is dependent on the character document encoding and should not be presumed to include NULL termination"

Definition at line 1787 of file wbxml_parser.c.

WBXMLError parse_uint8 WBXMLParser   parser,
unsigned char *    result
[static]
 

Parse UINT8.

Parameters:
parser [in] The WBXML Parser
result [out] Parsed UINT8
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
u_int8 = 8 bit unsigned integer

Definition at line 1914 of file wbxml_parser.c.

WBXMLError parse_version WBXMLParser   parser [static]
 

Parse WBXML version.

Parameters:
parser The WBXML Parser
Returns:
WBXML_OK if parsing is OK, an error code otherwise
Note:
version = u_int8

Definition at line 613 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().

WBXMLError wbxml_parser_parse WBXMLParser   parser,
unsigned char *    wbxml,
unsigned int    wbxml_len
 

Todo:
check charset !

Definition at line 222 of file wbxml_parser.c.

References WBXMLParser_s::charset, CHECK_ERROR, check_public_id(), WBXMLParser_s::content_hdl, WBXMLContentHandler_s::end_document_clb, WBXMLParser_s::lang_forced, WBXMLParser_s::langTable, NULL, parse_body(), parse_charset(), parse_publicid(), parse_strtbl(), parse_version(), WBXMLParser_s::public_id, WBXMLContentHandler_s::start_document_clb, WBXMLParser_s::user_data, WBXMLParser_s::version, WB_ULONG, WB_UTINY, WBXMLParser_s::wbxml, wbxml_buffer_create, WBXML_ERROR, WBXML_ERROR_EMPTY_WBXML, WBXML_ERROR_NOT_ENOUGH_MEMORY, WBXML_ERROR_NULL_PARSER, WBXML_ERROR_UNKNOWN_PUBLIC_ID, WBXML_LANG_UNKNOWN, WBXML_OK, WBXML_PARSER_MALLOC_BLOCK, wbxml_parser_reinit(), wbxml_tables_get_main(), wbxml_tables_get_wbxml_publicid(), WBXML_VERSION_10, WBXML_VERSION_13, WBXML_VERSION_TEXT_13, WBXML_WARNING, and WBXMLError.

void wbxml_parser_reinit WBXMLParser   parser [static]
 

Reinitialize a WBXML Parser.

Parameters:
parser The WBXMLParser to reinitialize
Note:
Only reinitialize internal fields of parser, and so keep User Data and Content Handler pointers.

Definition at line 370 of file wbxml_parser.c.

Referenced by wbxml_parser_parse().


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