libgpac
Documentation of the core library of GPAC
xml.h File Reference

XML functions. More...

#include <gpac/tools.h>
#include <gpac/list.h>
#include <gpac/bitstream.h>
+ Include dependency graph for xml.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_XMLAttribute
 
struct  GF_XMLNode
 

Typedefs

typedef struct _tag_sax_parser GF_SAXParser
 
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 total)
 
typedef struct _tag_dom_parser GF_DOMParser
 

Enumerations

enum  { GF_XML_NODE_TYPE = 0 , GF_XML_TEXT_TYPE , GF_XML_CDATA_TYPE }
 

Functions

GF_SAXParsergf_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)
 
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_DOMParsergf_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 *parser, char *string)
 
const char * gf_xml_dom_get_error (GF_DOMParser *parser)
 
u32 gf_xml_dom_get_line (GF_DOMParser *parser)
 
GF_Err gf_xml_dom_enable_passthrough (GF_DOMParser *dom)
 
u32 gf_xml_dom_get_root_nodes_count (GF_DOMParser *parser)
 
GF_XMLNodegf_xml_dom_get_root_idx (GF_DOMParser *parser, u32 idx)
 
GF_XMLNodegf_xml_dom_detach_root (GF_DOMParser *parser)
 
char * gf_xml_dom_serialize (GF_XMLNode *node, Bool content_only, Bool no_escape)
 
char * gf_xml_dom_serialize_root (GF_XMLNode *node, Bool content_only, Bool no_escape)
 
GF_XMLNodegf_xml_dom_get_root (GF_DOMParser *parser)
 
GF_XMLAttributegf_xml_dom_create_attribute (const char *name, const char *value)
 
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)
 
void gf_xml_dom_node_reset (GF_XMLNode *node, Bool reset_attribs, Bool reset_children)
 
GF_Err gf_xml_dom_node_check_namespace (const GF_XMLNode *n, const char *expected_node_name, const char *expected_ns_prefix)
 
void gf_xml_dump_string (FILE *file, const char *before, const char *str, const char *after)
 
GF_XMLNodegf_xml_dom_node_clone (GF_XMLNode *node)
 
GF_Err gf_xml_parse_bit_sequence (GF_XMLNode *bsroot, const char *parent_url, u8 **out_data, u32 *out_data_size)
 bit-sequence XML parser More...
 
GF_Err gf_xml_parse_bit_sequence_bs (GF_XMLNode *bsroot, const char *parent_url, const char *base_media, GF_BitStream *bs)
 bit-sequence XML parser More...
 

Detailed Description

>