Top |
raptor_sax2 * | raptor_new_sax2 () |
void | raptor_free_sax2 () |
void | (*raptor_sax2_start_element_handler) () |
void | (*raptor_sax2_end_element_handler) () |
void | (*raptor_sax2_characters_handler) () |
void | (*raptor_sax2_cdata_handler) () |
void | (*raptor_sax2_comment_handler) () |
void | (*raptor_sax2_unparsed_entity_decl_handler) () |
int | (*raptor_sax2_external_entity_ref_handler) () |
void | raptor_sax2_set_start_element_handler () |
void | raptor_sax2_set_end_element_handler () |
void | raptor_sax2_set_characters_handler () |
void | raptor_sax2_set_cdata_handler () |
void | raptor_sax2_set_comment_handler () |
void | raptor_sax2_set_unparsed_entity_decl_handler () |
void | raptor_sax2_set_external_entity_ref_handler () |
void | raptor_sax2_set_namespace_handler () |
void | raptor_sax2_set_uri_filter () |
void | raptor_sax2_parse_start () |
int | raptor_sax2_parse_chunk () |
const unsigned char * | raptor_sax2_inscope_xml_language () |
raptor_uri * | raptor_sax2_inscope_base_uri () |
raptor_sax2 * raptor_new_sax2 (raptor_world *world
,raptor_locator *locator
,void *user_data
);
Constructor - Create a new SAX2 with error handlers
void (*raptor_sax2_start_element_handler) (void *user_data
,raptor_xml_element *xml_element
);
SAX2 start element handler
void (*raptor_sax2_end_element_handler) (void *user_data
,raptor_xml_element *xml_element
);
SAX2 end element handler
void (*raptor_sax2_characters_handler) (void *user_data
,raptor_xml_element *xml_element
,const char *s
,int len
);
SAX2 characters handler
void (*raptor_sax2_cdata_handler) (void *user_data
,raptor_xml_element *xml_element
,const char *s
,int len
);
SAX2 CDATA section handler
void (*raptor_sax2_comment_handler) (void *user_data
,raptor_xml_element *xml_element
,const char *s
);
SAX2 XML comment handler
void (*raptor_sax2_unparsed_entity_decl_handler) (void *user_data
,const unsigned char *entityName
,const unsigned char *base
,const unsigned char *systemId
,const unsigned char *publicId
,const unsigned char *notationName
);
SAX2 unparsed entity (NDATA) handler
int (*raptor_sax2_external_entity_ref_handler) (void *user_data
,const unsigned char *context
,const unsigned char *base
,const unsigned char *systemId
,const unsigned char *publicId
);
SAX2 external entity reference handler
void raptor_sax2_set_start_element_handler (raptor_sax2 *sax2
,raptor_sax2_start_element_handler handler
);
Set SAX2 start element handler.
void raptor_sax2_set_end_element_handler (raptor_sax2 *sax2
,raptor_sax2_end_element_handler handler
);
Set SAX2 end element handler.
void raptor_sax2_set_characters_handler (raptor_sax2 *sax2
,raptor_sax2_characters_handler handler
);
Set SAX2 characters handler.
void raptor_sax2_set_cdata_handler (raptor_sax2 *sax2
,raptor_sax2_cdata_handler handler
);
Set SAX2 CDATA handler.
void raptor_sax2_set_comment_handler (raptor_sax2 *sax2
,raptor_sax2_comment_handler handler
);
Set SAX2 XML comment handler.
void raptor_sax2_set_unparsed_entity_decl_handler (raptor_sax2 *sax2
,raptor_sax2_unparsed_entity_decl_handler handler
);
Set SAX2 XML unparsed entity declaration handler.
void raptor_sax2_set_external_entity_ref_handler (raptor_sax2 *sax2
,raptor_sax2_external_entity_ref_handler handler
);
Set SAX2 XML entity reference handler.
void raptor_sax2_set_namespace_handler (raptor_sax2 *sax2
,raptor_namespace_handler handler
);
Set the XML namespace handler function.
When a prefix/namespace is seen in an XML parser, call the given
handler
with the prefix string and the raptor_uri namespace URI.
Either can be NULL for the default prefix or default namespace.
The handler function does not deal with duplicates so any namespace may be declared multiple times when a namespace is seen in different parts of a document.
void raptor_sax2_set_uri_filter (raptor_sax2 *sax2
,raptor_uri_filter_func filter
,void *user_data
);
Set URI filter function for SAX2 internal retrievals.
void raptor_sax2_parse_start (raptor_sax2 *sax2
,raptor_uri *base_uri
);
Start an XML SAX2 parse.
int raptor_sax2_parse_chunk (raptor_sax2 *sax2
,const char *buffer
,size_t len
,int is_end
);
Parse a chunk of XML data generating SAX2 events
const unsigned char *
raptor_sax2_inscope_xml_language (raptor_sax2 *sax2
);
Get the in-scope XML language
The result is a language string which may be "" if xml:lang="" is given. NULL is returned only if there is no xml:lang in any outer scope.
raptor_uri *
raptor_sax2_inscope_base_uri (raptor_sax2 *sax2
);
Get the in-scope base URI
Navigation: Redland Home Page