blob: 938d968b5f1ab0c183890bb6b5565f1ece2d9d97 [file] [log] [blame]
Daniel Veillard9589d452002-02-02 10:28:17 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
2<api name='libxml2-python'>
Daniel Veillard9589d452002-02-02 10:28:17 +00003 <symbols>
4 <function name='xmlRegisterXPathFunction' file='python'>
5 <info>Register a Python written function to the XPath interpreter</info>
6 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
7 <arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/>
8 <arg name='name' type='xmlChar *' info='the function name'/>
9 <arg name='ns_uri' type='xmlChar *' info='the namespace or NULL'/>
10 <arg name='f' type='pythonObject' info='the python function'/>
11 </function>
Daniel Veillarda94ec6f2002-03-01 13:00:53 +000012 <function name='xmlNewNode' file='python'>
13 <info>Create a new Node</info>
14 <return type='xmlNodePtr' info="A new element node"/>
15 <arg name='name' type='xmlChar *' info='the node name'/>
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>
Daniel Veillard8d24cc12002-03-05 15:41:29 +000039 <function name='xmlSAXParseFile' file='python'>
40 <info>Interface to parse an XML file or resource pointed by an URI to build an event flow to the SAX object</info>
41 <return type='void'/>
42 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
43 <arg name='URI' type='xmlChar *' info='The URI of the resource'/>
44 <arg name='recover' type='int' info='allow recovery in case of error'/>
45 </function>
46 <function name='htmlSAXParseFile' file='python'>
47 <info>Interface to parse an HTML file or resource pointed by an URI to build an event flow to the SAX object</info>
48 <return type='void'/>
49 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
50 <arg name='URI' type='xmlChar *' info='The URI of the resource'/>
51 <arg name='encoding' type='const char *' info='encoding or None'/>
52 </function>
Daniel Veillardc575b992002-02-08 13:28:40 +000053 <!-- xmlParserCtxtPtr accessors -->
Daniel Veillard3ce52572002-02-03 15:08:05 +000054 <function name='xmlParserGetDoc' file='python_accessor'>
55 <info>Get the document tree from a parser context.</info>
56 <return type='xmlDocPtr' info="the document tree" field="myDoc"/>
Daniel Veillard26f1dcc2002-02-03 16:53:19 +000057 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
58 </function>
59 <function name='xmlParserGetWellFormed' file='python_accessor'>
60 <info>Get the well formed information from a parser context.</info>
61 <return type='int' info="the wellFormed field" field="wellFormed"/>
62 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
63 </function>
64 <function name='xmlParserGetIsValid' file='python_accessor'>
65 <info>Get the validity information from a parser context.</info>
66 <return type='int' info="the valid field" field="valid"/>
67 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
68 </function>
69 <function name='xmlParserSetValidate' file='python_accessor'>
70 <info>Switch the parser to validation mode.</info>
71 <return type='void'/>
72 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
73 <arg name='validate' type='int' info='1 to activate validation'/>
74 </function>
75 <function name='xmlParserSetReplaceEntities' file='python_accessor'>
76 <info>Switch the parser to replace entities.</info>
77 <return type='void'/>
78 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
79 <arg name='replaceEntities' type='int' info='1 to replace entities'/>
80 </function>
81 <function name='xmlParserSetPedantic' file='python_accessor'>
82 <info>Switch the parser to be pedantic.</info>
83 <return type='void'/>
84 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
85 <arg name='pedantic' type='int' info='1 to run in pedantic mode'/>
86 </function>
87 <function name='xmlParserSetLoadSubset' file='python_accessor'>
88 <info>Switch the parser to load the DTD without validating.</info>
89 <return type='void'/>
90 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
91 <arg name='loadsubset' type='int' info='1 to load the DTD'/>
92 </function>
93 <function name='xmlParserSetLineNumbers' file='python_accessor'>
94 <info>Switch on the generation of line number for elements nodes.</info>
95 <return type='void'/>
96 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
97 <arg name='linenumbers' type='int' info='1 to save line numbers'/>
Daniel Veillard3ce52572002-02-03 15:08:05 +000098 </function>
Daniel Veillard4e1b26c2002-02-03 20:13:06 +000099 <function name='xmlDebugMemory' file='python'>
100 <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>
101 <return type='int' info="returns the number of bytes allocated and not freed"/>
102 <arg name='activate' type='int' info='1 switch on memory debugging 0 switch it off'/>
103 </function>
104 <function name='xmlDumpMemory' file='python'>
105 <info>dump the memory allocated in the file .memdump</info>
106 <return type='void'/>
107 </function>
Daniel Veillardc575b992002-02-08 13:28:40 +0000108 <!-- xmlNsPtr accessors -->
Daniel Veillard36eea2d2002-02-04 00:17:01 +0000109 <function name='xmlNodeGetNs' file='python_accessor'>
110 <info>Get the namespace of a node</info>
111 <return type='xmlNsPtr' info="The namespace or None"/>
112 <arg name='node' type='xmlNodePtr' info='the node'/>
113 </function>
114 <function name='xmlNodeGetNsDefs' file='python_accessor'>
115 <info>Get the namespace of a node</info>
116 <return type='xmlNsPtr' info="The namespace or None"/>
117 <arg name='node' type='xmlNodePtr' info='the node'/>
118 </function>
Daniel Veillard8d24cc12002-03-05 15:41:29 +0000119 <!-- xmlXPathContextPtr accessors -->
Daniel Veillardc575b992002-02-08 13:28:40 +0000120 <function name='xmlXPathParserGetContext' file='python_accessor'>
121 <info>Get the xpathContext from an xpathParserContext</info>
122 <return type='xmlXPathContextPtr' info="The XPath context" field="context"/>
123 <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath parser context'/>
124 </function>
125 <function name='xmlXPathGetContextDoc' file='python_accessor'>
126 <info>Get the doc from an xpathContext</info>
127 <return type='xmlDocPtr' info="The doc context" field="doc"/>
128 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
129 </function>
130 <function name='xmlXPathGetContextNode' file='python_accessor'>
131 <info>Get the current node from an xpathContext</info>
132 <return type='xmlNodePtr' info="The node context" field="node"/>
133 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
134 </function>
Daniel Veillard8d24cc12002-03-05 15:41:29 +0000135 <function name='xmlXPathSetContextDoc' file='python_accessor'>
136 <info>Set the doc of an xpathContext</info>
137 <return type='void'/>
138 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
139 <arg name="doc" type='xmlDocPtr' info="The doc context"/>
140 </function>
141 <function name='xmlXPathSetContextNode' file='python_accessor'>
142 <info>Set the current node of an xpathContext</info>
143 <return type='void'/>
144 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
145 <arg name="node" type='xmlNodePtr' info="The node context"/>
146 </function>
Daniel Veillardc575b992002-02-08 13:28:40 +0000147 <function name='xmlXPathGetContextPosition' file='python_accessor'>
148 <info>Get the current node from an xpathContext</info>
149 <return type='int' info="The node context" field="proximityPosition"/>
150 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
151 </function>
152 <function name='xmlXPathGetContextSize' file='python_accessor'>
153 <info>Get the current node from an xpathContext</info>
154 <return type='int' info="The node context" field="contextSize"/>
155 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
156 </function>
157 <function name='xmlXPathGetFunction' file='python_accessor'>
158 <info>Get the current function name xpathContext</info>
159 <return type='const xmlChar *' info="The function name" field="function"/>
160 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
161 </function>
162 <function name='xmlXPathGetFunctionURI' file='python_accessor'>
163 <info>Get the current function name URI xpathContext</info>
164 <return type='const xmlChar *' info="The function name URI" field="functionURI"/>
165 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
166 </function>
Daniel Veillard6361da02002-02-23 10:10:33 +0000167 <!-- xmlURIPtr accessors -->
168 <function name='xmlURIGetScheme' file='python_accessor'>
169 <info>Get the scheme part from an URI</info>
170 <return type='const char *' info="The URI scheme" field="scheme"/>
171 <arg name='URI' type='xmlURIPtr' info='the URI'/>
172 </function>
173 <function name='xmlURISetScheme' file='python_accessor'>
174 <info>Set the scheme part of an URI.</info>
175 <return type='void'/>
176 <arg name='URI' type='xmlURIPtr' info='the URI'/>
177 <arg name='scheme' type='char *' info='The URI scheme part'/>
178 </function>
179 <function name='xmlURIGetOpaque' file='python_accessor'>
180 <info>Get the opaque part from an URI</info>
181 <return type='const char *' info="The URI opaque" field="opaque"/>
182 <arg name='URI' type='xmlURIPtr' info='the URI'/>
183 </function>
184 <function name='xmlURISetOpaque' file='python_accessor'>
185 <info>Set the opaque part of an URI.</info>
186 <return type='void'/>
187 <arg name='URI' type='xmlURIPtr' info='the URI'/>
188 <arg name='opaque' type='char *' info='The URI opaque part'/>
189 </function>
190 <function name='xmlURIGetAuthority' file='python_accessor'>
191 <info>Get the authority part from an URI</info>
192 <return type='const char *' info="The URI authority" field="authority"/>
193 <arg name='URI' type='xmlURIPtr' info='the URI'/>
194 </function>
195 <function name='xmlURISetAuthority' file='python_accessor'>
196 <info>Set the authority part of an URI.</info>
197 <return type='void'/>
198 <arg name='URI' type='xmlURIPtr' info='the URI'/>
199 <arg name='authority' type='char *' info='The URI authority part'/>
200 </function>
201 <function name='xmlURIGetServer' file='python_accessor'>
202 <info>Get the server part from an URI</info>
203 <return type='const char *' info="The URI server" field="server"/>
204 <arg name='URI' type='xmlURIPtr' info='the URI'/>
205 </function>
206 <function name='xmlURISetServer' file='python_accessor'>
207 <info>Set the server part of an URI.</info>
208 <return type='void'/>
209 <arg name='URI' type='xmlURIPtr' info='the URI'/>
210 <arg name='server' type='char *' info='The URI server part'/>
211 </function>
212 <function name='xmlURIGetUser' file='python_accessor'>
213 <info>Get the user part from an URI</info>
214 <return type='const char *' info="The URI user" field="user"/>
215 <arg name='URI' type='xmlURIPtr' info='the URI'/>
216 </function>
217 <function name='xmlURISetUser' file='python_accessor'>
218 <info>Set the user part of an URI.</info>
219 <return type='void'/>
220 <arg name='URI' type='xmlURIPtr' info='the URI'/>
221 <arg name='user' type='char *' info='The URI user part'/>
222 </function>
223 <function name='xmlURIGetPath' file='python_accessor'>
224 <info>Get the path part from an URI</info>
225 <return type='const char *' info="The URI path" field="path"/>
226 <arg name='URI' type='xmlURIPtr' info='the URI'/>
227 </function>
228 <function name='xmlURISetPath' file='python_accessor'>
229 <info>Set the path part of an URI.</info>
230 <return type='void'/>
231 <arg name='URI' type='xmlURIPtr' info='the URI'/>
232 <arg name='path' type='char *' info='The URI path part'/>
233 </function>
234 <function name='xmlURIGetQuery' file='python_accessor'>
235 <info>Get the query part from an URI</info>
236 <return type='const char *' info="The URI query" field="query"/>
237 <arg name='URI' type='xmlURIPtr' info='the URI'/>
238 </function>
239 <function name='xmlURISetQuery' file='python_accessor'>
240 <info>Set the query part of an URI.</info>
241 <return type='void'/>
242 <arg name='URI' type='xmlURIPtr' info='the URI'/>
243 <arg name='query' type='char *' info='The URI query part'/>
244 </function>
245 <function name='xmlURIGetFragment' file='python_accessor'>
246 <info>Get the fragment part from an URI</info>
247 <return type='const char *' info="The URI fragment" field="fragment"/>
248 <arg name='URI' type='xmlURIPtr' info='the URI'/>
249 </function>
250 <function name='xmlURISetFragment' file='python_accessor'>
251 <info>Set the fragment part of an URI.</info>
252 <return type='void'/>
253 <arg name='URI' type='xmlURIPtr' info='the URI'/>
254 <arg name='fragment' type='char *' info='The URI fragment part'/>
255 </function>
256 <function name='xmlURIGetPort' file='python_accessor'>
257 <info>Get the port part from an URI</info>
258 <return type='int' info="The URI port" field="port"/>
259 <arg name='URI' type='xmlURIPtr' info='the URI'/>
260 </function>
261 <function name='xmlURISetPort' file='python_accessor'>
262 <info>Set the port part of an URI.</info>
263 <return type='void'/>
264 <arg name='URI' type='xmlURIPtr' info='the URI'/>
265 <arg name='port' type='int' info='The URI port part'/>
266 </function>
Daniel Veillard9589d452002-02-02 10:28:17 +0000267 </symbols>
268</api>