blob: 2c5eb048c5c8fad6fa0316e51b9b7978eea09622 [file] [log] [blame]
Daniel Veillard9589d452002-02-02 10:28:17 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
2<api name='libxml2-python'>
3 <files>
4 <file name='python'>
5 <exports symbol='libxml_registerXPathFunction'/>
6 </file>
7 </files>
8 <symbols>
9 <function name='xmlRegisterXPathFunction' file='python'>
10 <info>Register a Python written function to the XPath interpreter</info>
11 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
12 <arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/>
13 <arg name='name' type='xmlChar *' info='the function name'/>
14 <arg name='ns_uri' type='xmlChar *' info='the namespace or NULL'/>
15 <arg name='f' type='pythonObject' info='the python function'/>
16 </function>
Daniel Veillard5d819032002-02-02 21:49:17 +000017 <function name='xmlRegisterErrorHandler' file='python'>
18 <info>Register a Python written function to for error reporting. The function is called back as f(ctx, error).</info>
19 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
20 <arg name='f' type='pythonObject' info='the python function'/>
21 <arg name='ctx' type='pythonObject' info='a context for the callback'/>
22 </function>
Daniel Veillard3ce52572002-02-03 15:08:05 +000023 <function name='xmlCreatePushParser' file='python'>
24 <info>Create a progressive parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise.</info>
25 <return type='xmlParserCtxtPtr' info="the parser context or None in case of error"/>
26 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
27 <arg name='chunk' type='xmlChar *' info='the initial data'/>
28 <arg name='size' type='int' info='the size of the initial data'/>
29 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
30 </function>
31 <function name='xmlParserGetDoc' file='python_accessor'>
32 <info>Get the document tree from a parser context.</info>
33 <return type='xmlDocPtr' info="the document tree" field="myDoc"/>
Daniel Veillard26f1dcc2002-02-03 16:53:19 +000034 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
35 </function>
36 <function name='xmlParserGetWellFormed' file='python_accessor'>
37 <info>Get the well formed information from a parser context.</info>
38 <return type='int' info="the wellFormed field" field="wellFormed"/>
39 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
40 </function>
41 <function name='xmlParserGetIsValid' file='python_accessor'>
42 <info>Get the validity information from a parser context.</info>
43 <return type='int' info="the valid field" field="valid"/>
44 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
45 </function>
46 <function name='xmlParserSetValidate' file='python_accessor'>
47 <info>Switch the parser to validation mode.</info>
48 <return type='void'/>
49 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
50 <arg name='validate' type='int' info='1 to activate validation'/>
51 </function>
52 <function name='xmlParserSetReplaceEntities' file='python_accessor'>
53 <info>Switch the parser to replace entities.</info>
54 <return type='void'/>
55 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
56 <arg name='replaceEntities' type='int' info='1 to replace entities'/>
57 </function>
58 <function name='xmlParserSetPedantic' file='python_accessor'>
59 <info>Switch the parser to be pedantic.</info>
60 <return type='void'/>
61 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
62 <arg name='pedantic' type='int' info='1 to run in pedantic mode'/>
63 </function>
64 <function name='xmlParserSetLoadSubset' file='python_accessor'>
65 <info>Switch the parser to load the DTD without validating.</info>
66 <return type='void'/>
67 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
68 <arg name='loadsubset' type='int' info='1 to load the DTD'/>
69 </function>
70 <function name='xmlParserSetLineNumbers' file='python_accessor'>
71 <info>Switch on the generation of line number for elements nodes.</info>
72 <return type='void'/>
73 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
74 <arg name='linenumbers' type='int' info='1 to save line numbers'/>
Daniel Veillard3ce52572002-02-03 15:08:05 +000075 </function>
Daniel Veillard9589d452002-02-02 10:28:17 +000076 </symbols>
77</api>