blob: 94d8f846e9515faceaa2831d0925a903ac6aa1d6 [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'>
Daniel Veillard4e1b26c2002-02-03 20:13:06 +000024 <info>Create a progressive XML 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='htmlCreatePushParser' file='python'>
32 <info>Create a progressive HTML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise.</info>
Daniel Veillard3ce52572002-02-03 15:08:05 +000033 <return type='xmlParserCtxtPtr' info="the parser context or None in case of error"/>
34 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
35 <arg name='chunk' type='xmlChar *' info='the initial data'/>
36 <arg name='size' type='int' info='the size of the initial data'/>
37 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
38 </function>
39 <function name='xmlParserGetDoc' file='python_accessor'>
40 <info>Get the document tree from a parser context.</info>
41 <return type='xmlDocPtr' info="the document tree" field="myDoc"/>
Daniel Veillard26f1dcc2002-02-03 16:53:19 +000042 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
43 </function>
44 <function name='xmlParserGetWellFormed' file='python_accessor'>
45 <info>Get the well formed information from a parser context.</info>
46 <return type='int' info="the wellFormed field" field="wellFormed"/>
47 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
48 </function>
49 <function name='xmlParserGetIsValid' file='python_accessor'>
50 <info>Get the validity information from a parser context.</info>
51 <return type='int' info="the valid field" field="valid"/>
52 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
53 </function>
54 <function name='xmlParserSetValidate' file='python_accessor'>
55 <info>Switch the parser to validation mode.</info>
56 <return type='void'/>
57 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
58 <arg name='validate' type='int' info='1 to activate validation'/>
59 </function>
60 <function name='xmlParserSetReplaceEntities' file='python_accessor'>
61 <info>Switch the parser to replace entities.</info>
62 <return type='void'/>
63 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
64 <arg name='replaceEntities' type='int' info='1 to replace entities'/>
65 </function>
66 <function name='xmlParserSetPedantic' file='python_accessor'>
67 <info>Switch the parser to be pedantic.</info>
68 <return type='void'/>
69 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
70 <arg name='pedantic' type='int' info='1 to run in pedantic mode'/>
71 </function>
72 <function name='xmlParserSetLoadSubset' file='python_accessor'>
73 <info>Switch the parser to load the DTD without validating.</info>
74 <return type='void'/>
75 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
76 <arg name='loadsubset' type='int' info='1 to load the DTD'/>
77 </function>
78 <function name='xmlParserSetLineNumbers' file='python_accessor'>
79 <info>Switch on the generation of line number for elements nodes.</info>
80 <return type='void'/>
81 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
82 <arg name='linenumbers' type='int' info='1 to save line numbers'/>
Daniel Veillard3ce52572002-02-03 15:08:05 +000083 </function>
Daniel Veillard4e1b26c2002-02-03 20:13:06 +000084 <function name='xmlDebugMemory' file='python'>
85 <info>Switch on the generation of line number for elements nodes. Also returns the number of bytes allocated and not freed by libxml2 since memory debugging was switched on.</info>
86 <return type='int' info="returns the number of bytes allocated and not freed"/>
87 <arg name='activate' type='int' info='1 switch on memory debugging 0 switch it off'/>
88 </function>
89 <function name='xmlDumpMemory' file='python'>
90 <info>dump the memory allocated in the file .memdump</info>
91 <return type='void'/>
92 </function>
Daniel Veillard36eea2d2002-02-04 00:17:01 +000093 <function name='xmlNodeGetNs' file='python_accessor'>
94 <info>Get the namespace of a node</info>
95 <return type='xmlNsPtr' info="The namespace or None"/>
96 <arg name='node' type='xmlNodePtr' info='the node'/>
97 </function>
98 <function name='xmlNodeGetNsDefs' file='python_accessor'>
99 <info>Get the namespace of a node</info>
100 <return type='xmlNsPtr' info="The namespace or None"/>
101 <arg name='node' type='xmlNodePtr' info='the node'/>
102 </function>
Daniel Veillard9589d452002-02-02 10:28:17 +0000103 </symbols>
104</api>