libdom
Loading...
Searching...
No Matches
xmlparser.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
6 */
7
8#ifndef xml_xmlparser_h_
9#define xml_xmlparser_h_
10
11#include <stddef.h>
12#include <inttypes.h>
13
14#include <dom/dom.h>
15
16#include "xmlerror.h"
17
19
20/* Create an XML parser instance */
21dom_xml_parser *dom_xml_parser_create(const char *enc, const char *int_enc,
22 dom_msg msg, void *mctx, dom_document **document);
23
24/* Destroy an XML parser instance */
26
27/* Parse a chunk of data */
29 uint8_t *data, size_t len);
30
31/* Notify parser that datastream is empty */
33
34#endif
void(* dom_msg)(uint32_t severity, void *ctx, const char *msg,...)
Definition functypes.h:31
Definition document.h:43
Definition expat_xmlparser.c:25
dom_msg msg
Definition expat_xmlparser.c:26
void * mctx
Definition expat_xmlparser.c:27
XML_Parser parser
Definition expat_xmlparser.c:28
dom_xml_error
Definition xmlerror.h:11
void dom_xml_parser_destroy(dom_xml_parser *parser)
Definition expat_xmlparser.c:566
dom_xml_error dom_xml_parser_parse_chunk(dom_xml_parser *parser, uint8_t *data, size_t len)
Definition expat_xmlparser.c:584
dom_xml_error dom_xml_parser_completed(dom_xml_parser *parser)
Definition expat_xmlparser.c:607
dom_xml_parser * dom_xml_parser_create(const char *enc, const char *int_enc, dom_msg msg, void *mctx, dom_document **document)
Definition expat_xmlparser.c:479