GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups

XML Parsing functions. More...

+ Collaboration diagram for XML:

Data Structures

struct  GF_XMLAttribute
 
struct  GF_XMLNode
 

Typedefs

typedef void(* gf_xml_sax_node_start )(void *sax_cbck, const char *node_name, const char *name_space, const GF_XMLAttribute *attributes, u32 nb_attributes)
 
typedef void(* gf_xml_sax_node_end )(void *sax_cbck, const char *node_name, const char *name_space)
 
typedef void(* gf_xml_sax_text_content )(void *sax_cbck, const char *content, Bool is_cdata)
 
typedef void(* gf_xml_sax_progress )(void *cbck, u64 done, u64 tot)
 

Enumerations

enum  { GF_XML_NODE_TYPE = 0, GF_XML_TEXT_TYPE, GF_XML_CDATA_TYPE }
 

Functions

GF_SAXParser * gf_xml_sax_new (gf_xml_sax_node_start on_node_start, gf_xml_sax_node_end on_node_end, gf_xml_sax_text_content on_text_content, void *cbck)
 
void gf_xml_sax_del (GF_SAXParser *parser)
 
GF_Err gf_xml_sax_init (GF_SAXParser *parser, unsigned char *BOM)
 
GF_Err gf_xml_sax_parse (GF_SAXParser *parser, const void *string_bytes)
 
GF_Err gf_xml_sax_suspend (GF_SAXParser *parser, Bool do_suspend)
 
GF_Err gf_xml_sax_parse_file (GF_SAXParser *parser, const char *fileName, gf_xml_sax_progress OnProgress)
 
u32 gf_xml_sax_get_line (GF_SAXParser *parser)
 
u32 gf_xml_sax_get_file_size (GF_SAXParser *parser)
 
u32 gf_xml_sax_get_file_pos (GF_SAXParser *parser)
 
char * gf_xml_sax_peek_node (GF_SAXParser *parser, char *att_name, char *att_value, char *substitute, char *get_attr, char *end_pattern, Bool *is_substitute)
 
Bool gf_xml_sax_binary_file (GF_SAXParser *parser)
 
const char * gf_xml_sax_get_error (GF_SAXParser *parser)
 
char * gf_xml_get_root_type (const char *file, GF_Err *ret_code)
 
u32 gf_xml_sax_get_node_start_pos (GF_SAXParser *parser)
 
u32 gf_xml_sax_get_node_end_pos (GF_SAXParser *parser)
 
GF_DOMParser * gf_xml_dom_new ()
 
void gf_xml_dom_del (GF_DOMParser *parser)
 
GF_Err gf_xml_dom_parse (GF_DOMParser *parser, const char *file, gf_xml_sax_progress OnProgress, void *cbk)
 
GF_Err gf_xml_dom_parse_string (GF_DOMParser *dom, char *string)
 
const char * gf_xml_dom_get_error (GF_DOMParser *parser)
 
u32 gf_xml_dom_get_line (GF_DOMParser *parser)
 
char * gf_xml_dom_serialize (GF_XMLNode *node, Bool content_only)
 
GF_XMLNodegf_xml_dom_create_root (GF_DOMParser *parser, const char *name)
 
GF_XMLNodegf_xml_dom_get_root (GF_DOMParser *parser)
 
GF_XMLNodegf_xml_dom_detach_root (GF_DOMParser *parser)
 
GF_XMLAttributegf_xml_dom_set_attribute (GF_XMLNode *node, const char *name, const char *value)
 
GF_XMLAttributegf_xml_dom_get_attribute (GF_XMLNode *node, const char *name)
 
GF_Err gf_xml_dom_append_child (GF_XMLNode *node, GF_XMLNode *child)
 
GF_XMLNodegf_xml_dom_node_new (const char *ns, const char *name)
 
void gf_xml_dom_node_del (GF_XMLNode *node)
 
GF_Err gf_xml_parse_bit_sequence (GF_XMLNode *bsroot, char **out_data, u32 *out_data_size)
 

Detailed Description

This section documents the XML functions of the GPAC framework.


Data Structure Documentation

struct GF_XMLAttribute
+ Collaboration diagram for GF_XMLAttribute:
Data Fields
char * name
char * value
struct GF_XMLNode
+ Collaboration diagram for GF_XMLNode:
Data Fields
u32 type
char * name
char * ns
GF_List * attributes
GF_List * content

Typedef Documentation

typedef void(* gf_xml_sax_node_start)(void *sax_cbck, const char *node_name, const char *name_space, const GF_XMLAttribute *attributes, u32 nb_attributes)
typedef void(* gf_xml_sax_node_end)(void *sax_cbck, const char *node_name, const char *name_space)
typedef void(* gf_xml_sax_text_content)(void *sax_cbck, const char *content, Bool is_cdata)
typedef void(* gf_xml_sax_progress)(void *cbck, u64 done, u64 tot)

Enumeration Type Documentation

anonymous enum
Enumerator
GF_XML_NODE_TYPE 
GF_XML_TEXT_TYPE 
GF_XML_CDATA_TYPE 

Function Documentation

GF_SAXParser* gf_xml_sax_new ( gf_xml_sax_node_start  on_node_start,
gf_xml_sax_node_end  on_node_end,
gf_xml_sax_text_content  on_text_content,
void *  cbck 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_xml_sax_del ( GF_SAXParser *  parser)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_sax_init ( GF_SAXParser *  parser,
unsigned char *  BOM 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_sax_parse ( GF_SAXParser *  parser,
const void *  string_bytes 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_sax_suspend ( GF_SAXParser *  parser,
Bool  do_suspend 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_sax_parse_file ( GF_SAXParser *  parser,
const char *  fileName,
gf_xml_sax_progress  OnProgress 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_xml_sax_get_line ( GF_SAXParser *  parser)

+ Here is the caller graph for this function:

u32 gf_xml_sax_get_file_size ( GF_SAXParser *  parser)
u32 gf_xml_sax_get_file_pos ( GF_SAXParser *  parser)
char* gf_xml_sax_peek_node ( GF_SAXParser *  parser,
char *  att_name,
char *  att_value,
char *  substitute,
char *  get_attr,
char *  end_pattern,
Bool is_substitute 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_xml_sax_binary_file ( GF_SAXParser *  parser)

+ Here is the caller graph for this function:

const char* gf_xml_sax_get_error ( GF_SAXParser *  parser)

+ Here is the caller graph for this function:

char* gf_xml_get_root_type ( const char *  file,
GF_Err ret_code 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_xml_sax_get_node_start_pos ( GF_SAXParser *  parser)

+ Here is the caller graph for this function:

u32 gf_xml_sax_get_node_end_pos ( GF_SAXParser *  parser)

+ Here is the caller graph for this function:

GF_DOMParser* gf_xml_dom_new ( )

+ Here is the caller graph for this function:

void gf_xml_dom_del ( GF_DOMParser *  parser)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_dom_parse ( GF_DOMParser *  parser,
const char *  file,
gf_xml_sax_progress  OnProgress,
void *  cbk 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_dom_parse_string ( GF_DOMParser *  dom,
char *  string 
)

+ Here is the call graph for this function:

const char* gf_xml_dom_get_error ( GF_DOMParser *  parser)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_xml_dom_get_line ( GF_DOMParser *  parser)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* gf_xml_dom_serialize ( GF_XMLNode node,
Bool  content_only 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_XMLNode* gf_xml_dom_create_root ( GF_DOMParser *  parser,
const char *  name 
)

+ Here is the call graph for this function:

GF_XMLNode* gf_xml_dom_get_root ( GF_DOMParser *  parser)

+ Here is the caller graph for this function:

GF_XMLNode* gf_xml_dom_detach_root ( GF_DOMParser *  parser)
GF_XMLAttribute* gf_xml_dom_set_attribute ( GF_XMLNode node,
const char *  name,
const char *  value 
)

+ Here is the call graph for this function:

GF_XMLAttribute* gf_xml_dom_get_attribute ( GF_XMLNode node,
const char *  name 
)

+ Here is the call graph for this function:

GF_Err gf_xml_dom_append_child ( GF_XMLNode node,
GF_XMLNode child 
)

+ Here is the call graph for this function:

GF_XMLNode* gf_xml_dom_node_new ( const char *  ns,
const char *  name 
)

+ Here is the call graph for this function:

void gf_xml_dom_node_del ( GF_XMLNode node)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_xml_parse_bit_sequence ( GF_XMLNode bsroot,
char **  out_data,
u32 out_data_size 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: