2 * Summary: old DocBook SGML parser
3 * Description: interface for a DocBook SGML non-verifying parser
4 * This code is DEPRECATED, and should not be used anymore.
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
11 #ifndef __DOCB_PARSER_H__
12 #define __DOCB_PARSER_H__
13 #include <libxml/xmlversion.h>
15 #ifdef LIBXML_DOCB_ENABLED
17 #include <libxml/parser.h>
18 #include <libxml/parserInternals.h>
22 #warning "The DOCBparser module has been deprecated in libxml2-2.6.0"
31 * Most of the back-end structures from XML and SGML are shared.
33 typedef xmlParserCtxt docbParserCtxt
;
34 typedef xmlParserCtxtPtr docbParserCtxtPtr
;
35 typedef xmlSAXHandler docbSAXHandler
;
36 typedef xmlSAXHandlerPtr docbSAXHandlerPtr
;
37 typedef xmlParserInput docbParserInput
;
38 typedef xmlParserInputPtr docbParserInputPtr
;
39 typedef xmlDocPtr docbDocPtr
;
42 * There is only few public functions.
45 docbEncodeEntities(unsigned char *out
,
47 const unsigned char *in
,
48 int *inlen
, int quoteChar
);
50 XMLPUBFUN docbDocPtr XMLCALL
51 docbSAXParseDoc (xmlChar
*cur
,
53 docbSAXHandlerPtr sax
,
55 XMLPUBFUN docbDocPtr XMLCALL
56 docbParseDoc (xmlChar
*cur
,
57 const char *encoding
);
58 XMLPUBFUN docbDocPtr XMLCALL
59 docbSAXParseFile (const char *filename
,
61 docbSAXHandlerPtr sax
,
63 XMLPUBFUN docbDocPtr XMLCALL
64 docbParseFile (const char *filename
,
65 const char *encoding
);
68 * Interfaces for the Push mode.
70 XMLPUBFUN
void XMLCALL
71 docbFreeParserCtxt (docbParserCtxtPtr ctxt
);
72 XMLPUBFUN docbParserCtxtPtr XMLCALL
73 docbCreatePushParserCtxt(docbSAXHandlerPtr sax
,
80 docbParseChunk (docbParserCtxtPtr ctxt
,
84 XMLPUBFUN docbParserCtxtPtr XMLCALL
85 docbCreateFileParserCtxt(const char *filename
,
86 const char *encoding
);
88 docbParseDocument (docbParserCtxtPtr ctxt
);
94 #endif /* LIBXML_DOCB_ENABLED */
96 #endif /* __DOCB_PARSER_H__ */