VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.4/python/libxml2-python-api.xml@ 66550

最後變更 在這個檔案從66550是 65950,由 vboxsync 提交於 8 年 前

libxml 2.9.4: fix export

  • 屬性 svn:eol-style 設為 native
檔案大小: 18.8 KB
 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<api name='libxml2-python'>
3 <symbols>
4 <function name='xmlRegisterXPathFunction' file='python'>
5 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
6 <info>Register a Python written function to the XPath interpreter</info>
7 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
8 <arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/>
9 <arg name='name' type='xmlChar *' info='the function name'/>
10 <arg name='ns_uri' type='xmlChar *' info='the namespace or NULL'/>
11 <arg name='f' type='pythonObject' info='the python function'/>
12 </function>
13 <function name='xmlXPathRegisterVariable' file='python'>
14 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
15 <info>Register a variable with the XPath context</info>
16 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
17 <arg name='ctx' type='xmlXPathContextPtr' info='the xpathContext'/>
18 <arg name='name' type='xmlChar *' info='the variable name'/>
19 <arg name='ns_uri' type='xmlChar *' info='the namespace or NULL'/>
20 <arg name='value' type='pythonObject' info='the value'/>
21 </function>
22 <function name='xmlNewNode' file='python'>
23 <info>Create a new Node</info>
24 <return type='xmlNodePtr' info="A new element node"/>
25 <arg name='name' type='xmlChar *' info='the node name'/>
26 </function>
27 <function name='xmlCreatePushParser' file='python'>
28 <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>
29 <return type='xmlParserCtxtPtr' info="the parser context or None in case of error"/>
30 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
31 <arg name='chunk' type='xmlChar *' info='the initial data'/>
32 <arg name='size' type='int' info='the size of the initial data'/>
33 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
34 </function>
35 <function name='htmlCreatePushParser' file='python'>
36 <cond>defined(LIBXML_HTML_ENABLED)</cond>
37 <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>
38 <return type='xmlParserCtxtPtr' info="the parser context or None in case of error"/>
39 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
40 <arg name='chunk' type='xmlChar *' info='the initial data'/>
41 <arg name='size' type='int' info='the size of the initial data'/>
42 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
43 </function>
44 <function name='xmlSAXParseFile' file='python'>
45 <info>Interface to parse an XML file or resource pointed by an URI to build an event flow to the SAX object</info>
46 <return type='void'/>
47 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
48 <arg name='URI' type='xmlChar *' info='The URI of the resource'/>
49 <arg name='recover' type='int' info='allow recovery in case of error'/>
50 </function>
51 <function name='htmlSAXParseFile' file='python'>
52 <cond>defined(LIBXML_HTML_ENABLED)</cond>
53 <info>Interface to parse an HTML file or resource pointed by an URI to build an event flow to the SAX object</info>
54 <return type='void'/>
55 <arg name='SAX' type='pythonObject' info='the SAX callback object or None'/>
56 <arg name='URI' type='xmlChar *' info='The URI of the resource'/>
57 <arg name='encoding' type='const char *' info='encoding or None'/>
58 </function>
59 <function name='xmlCreateOutputBuffer' file='python'>
60 <info>Create a libxml2 output buffer from a Python file</info>
61 <return type='xmlOutputBufferPtr' info="the output buffer"/>
62 <arg name='file' type='pythonObject' info='the Python file'/>
63 <arg name='encoding' type='xmlChar *' info='an optionnal encoding'/>
64 </function>
65 <function name='xmlCreateInputBuffer' file='python'>
66 <info>Create a libxml2 input buffer from a Python file</info>
67 <return type='xmlParserInputBufferPtr' info="the input buffer"/>
68 <arg name='file' type='pythonObject' info='the Python file'/>
69 <arg name='encoding' type='xmlChar *' info='an optionnal encoding'/>
70 </function>
71 <function name='xmlSetEntityLoader' file='python'>
72 <info>Set the entity resolver as a python function</info>
73 <return type='int' info="0 in case of success, -1 for error"/>
74 <arg name='resolver' type='pythonObject' info='the Python function'/>
75 </function>
76 <!-- xmlParserCtxtPtr accessors -->
77 <function name='xmlParserGetDoc' file='python_accessor'>
78 <info>Get the document tree from a parser context.</info>
79 <return type='xmlDocPtr' info="the document tree" field="myDoc"/>
80 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
81 </function>
82 <function name='xmlParserGetWellFormed' file='python_accessor'>
83 <info>Get the well formed information from a parser context.</info>
84 <return type='int' info="the wellFormed field" field="wellFormed"/>
85 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
86 </function>
87 <function name='xmlParserGetIsValid' file='python_accessor'>
88 <info>Get the validity information from a parser context.</info>
89 <return type='int' info="the valid field" field="valid"/>
90 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
91 </function>
92 <function name='xmlParserSetValidate' file='python_accessor'>
93 <info>Switch the parser to validation mode.</info>
94 <return type='void'/>
95 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
96 <arg name='validate' type='int' info='1 to activate validation'/>
97 </function>
98 <function name='xmlParserSetReplaceEntities' file='python_accessor'>
99 <info>Switch the parser to replace entities.</info>
100 <return type='void'/>
101 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
102 <arg name='replaceEntities' type='int' info='1 to replace entities'/>
103 </function>
104 <function name='xmlParserSetPedantic' file='python_accessor'>
105 <info>Switch the parser to be pedantic.</info>
106 <return type='void'/>
107 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
108 <arg name='pedantic' type='int' info='1 to run in pedantic mode'/>
109 </function>
110 <function name='xmlParserSetLoadSubset' file='python_accessor'>
111 <info>Switch the parser to load the DTD without validating.</info>
112 <return type='void'/>
113 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
114 <arg name='loadsubset' type='int' info='1 to load the DTD'/>
115 </function>
116 <function name='xmlParserSetLineNumbers' file='python_accessor'>
117 <info>Switch on the generation of line number for elements nodes.</info>
118 <return type='void'/>
119 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
120 <arg name='linenumbers' type='int' info='1 to save line numbers'/>
121 </function>
122 <function name='xmlDebugMemory' file='python'>
123 <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>
124 <return type='int' info="returns the number of bytes allocated and not freed"/>
125 <arg name='activate' type='int' info='1 switch on memory debugging 0 switch it off'/>
126 </function>
127 <function name='xmlDumpMemory' file='python'>
128 <info>dump the memory allocated in the file .memdump</info>
129 <return type='void'/>
130 </function>
131 <!-- xmlNsPtr accessors -->
132 <function name='xmlNodeGetNs' file='python_accessor'>
133 <info>Get the namespace of a node</info>
134 <return type='xmlNsPtr' info="The namespace or None"/>
135 <arg name='node' type='xmlNodePtr' info='the node'/>
136 </function>
137 <function name='xmlNodeGetNsDefs' file='python_accessor'>
138 <info>Get the namespace of a node</info>
139 <return type='xmlNsPtr' info="The namespace or None"/>
140 <arg name='node' type='xmlNodePtr' info='the node'/>
141 </function>
142 <!-- xmlXPathContextPtr accessors -->
143 <function name='xmlXPathParserGetContext' file='python_accessor'>
144 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
145 <info>Get the xpathContext from an xpathParserContext</info>
146 <return type='xmlXPathContextPtr' info="The XPath context" field="context"/>
147 <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath parser context'/>
148 </function>
149 <function name='xmlXPathGetContextDoc' file='python_accessor'>
150 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
151 <info>Get the doc from an xpathContext</info>
152 <return type='xmlDocPtr' info="The doc context" field="doc"/>
153 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
154 </function>
155 <function name='xmlXPathGetContextNode' file='python_accessor'>
156 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
157 <info>Get the current node from an xpathContext</info>
158 <return type='xmlNodePtr' info="The node context" field="node"/>
159 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
160 </function>
161 <function name='xmlXPathSetContextDoc' file='python_accessor'>
162 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
163 <info>Set the doc of an xpathContext</info>
164 <return type='void'/>
165 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
166 <arg name="doc" type='xmlDocPtr' info="The doc context"/>
167 </function>
168 <function name='xmlXPathSetContextNode' file='python_accessor'>
169 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
170 <info>Set the current node of an xpathContext</info>
171 <return type='void'/>
172 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
173 <arg name="node" type='xmlNodePtr' info="The node context"/>
174 </function>
175 <function name='xmlXPathGetContextPosition' file='python_accessor'>
176 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
177 <info>Get the current node from an xpathContext</info>
178 <return type='int' info="The node context" field="proximityPosition"/>
179 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
180 </function>
181 <function name='xmlXPathGetContextSize' file='python_accessor'>
182 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
183 <info>Get the current node from an xpathContext</info>
184 <return type='int' info="The node context" field="contextSize"/>
185 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
186 </function>
187 <function name='xmlXPathGetFunction' file='python_accessor'>
188 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
189 <info>Get the current function name xpathContext</info>
190 <return type='const xmlChar *' info="The function name" field="function"/>
191 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
192 </function>
193 <function name='xmlXPathGetFunctionURI' file='python_accessor'>
194 <cond>defined(LIBXML_XPATH_ENABLED)</cond>
195 <info>Get the current function name URI xpathContext</info>
196 <return type='const xmlChar *' info="The function name URI" field="functionURI"/>
197 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
198 </function>
199 <!-- xmlURIPtr accessors -->
200 <function name='xmlURIGetScheme' file='python_accessor'>
201 <info>Get the scheme part from an URI</info>
202 <return type='const char *' info="The URI scheme" field="scheme"/>
203 <arg name='URI' type='xmlURIPtr' info='the URI'/>
204 </function>
205 <function name='xmlURISetScheme' file='python_accessor'>
206 <info>Set the scheme part of an URI.</info>
207 <return type='void'/>
208 <arg name='URI' type='xmlURIPtr' info='the URI'/>
209 <arg name='scheme' type='char *' info='The URI scheme part'/>
210 </function>
211 <function name='xmlURIGetOpaque' file='python_accessor'>
212 <info>Get the opaque part from an URI</info>
213 <return type='const char *' info="The URI opaque" field="opaque"/>
214 <arg name='URI' type='xmlURIPtr' info='the URI'/>
215 </function>
216 <function name='xmlURISetOpaque' file='python_accessor'>
217 <info>Set the opaque part of an URI.</info>
218 <return type='void'/>
219 <arg name='URI' type='xmlURIPtr' info='the URI'/>
220 <arg name='opaque' type='char *' info='The URI opaque part'/>
221 </function>
222 <function name='xmlURIGetAuthority' file='python_accessor'>
223 <info>Get the authority part from an URI</info>
224 <return type='const char *' info="The URI authority" field="authority"/>
225 <arg name='URI' type='xmlURIPtr' info='the URI'/>
226 </function>
227 <function name='xmlURISetAuthority' file='python_accessor'>
228 <info>Set the authority part of an URI.</info>
229 <return type='void'/>
230 <arg name='URI' type='xmlURIPtr' info='the URI'/>
231 <arg name='authority' type='char *' info='The URI authority part'/>
232 </function>
233 <function name='xmlURIGetServer' file='python_accessor'>
234 <info>Get the server part from an URI</info>
235 <return type='const char *' info="The URI server" field="server"/>
236 <arg name='URI' type='xmlURIPtr' info='the URI'/>
237 </function>
238 <function name='xmlURISetServer' file='python_accessor'>
239 <info>Set the server part of an URI.</info>
240 <return type='void'/>
241 <arg name='URI' type='xmlURIPtr' info='the URI'/>
242 <arg name='server' type='char *' info='The URI server part'/>
243 </function>
244 <function name='xmlURIGetUser' file='python_accessor'>
245 <info>Get the user part from an URI</info>
246 <return type='const char *' info="The URI user" field="user"/>
247 <arg name='URI' type='xmlURIPtr' info='the URI'/>
248 </function>
249 <function name='xmlURISetUser' file='python_accessor'>
250 <info>Set the user part of an URI.</info>
251 <return type='void'/>
252 <arg name='URI' type='xmlURIPtr' info='the URI'/>
253 <arg name='user' type='char *' info='The URI user part'/>
254 </function>
255 <function name='xmlURIGetPath' file='python_accessor'>
256 <info>Get the path part from an URI</info>
257 <return type='const char *' info="The URI path" field="path"/>
258 <arg name='URI' type='xmlURIPtr' info='the URI'/>
259 </function>
260 <function name='xmlURISetPath' file='python_accessor'>
261 <info>Set the path part of an URI.</info>
262 <return type='void'/>
263 <arg name='URI' type='xmlURIPtr' info='the URI'/>
264 <arg name='path' type='char *' info='The URI path part'/>
265 </function>
266 <function name='xmlURIGetQuery' file='python_accessor'>
267 <info>Get the query part from an URI</info>
268 <return type='const char *' info="The URI query" field="query"/>
269 <arg name='URI' type='xmlURIPtr' info='the URI'/>
270 </function>
271 <function name='xmlURISetQuery' file='python_accessor'>
272 <info>Set the query part of an URI.</info>
273 <return type='void'/>
274 <arg name='URI' type='xmlURIPtr' info='the URI'/>
275 <arg name='query' type='char *' info='The URI query part'/>
276 </function>
277 <function name='xmlURIGetQueryRaw' file='python_accessor'>
278 <info>Get the raw query part from an URI (i.e. the unescaped form).</info>
279 <return type='const char *' info="The URI query" field="query_raw"/>
280 <arg name='URI' type='xmlURIPtr' info='the URI'/>
281 </function>
282 <function name='xmlURISetQueryRaw' file='python_accessor'>
283 <info>Set the raw query part of an URI (i.e. the unescaped form).</info>
284 <return type='void'/>
285 <arg name='URI' type='xmlURIPtr' info='the URI'/>
286 <arg name='query_raw' type='char *' info='The raw URI query part'/>
287 </function>
288 <function name='xmlURIGetFragment' file='python_accessor'>
289 <info>Get the fragment part from an URI</info>
290 <return type='const char *' info="The URI fragment" field="fragment"/>
291 <arg name='URI' type='xmlURIPtr' info='the URI'/>
292 </function>
293 <function name='xmlURISetFragment' file='python_accessor'>
294 <info>Set the fragment part of an URI.</info>
295 <return type='void'/>
296 <arg name='URI' type='xmlURIPtr' info='the URI'/>
297 <arg name='fragment' type='char *' info='The URI fragment part'/>
298 </function>
299 <function name='xmlURIGetPort' file='python_accessor'>
300 <info>Get the port part from an URI</info>
301 <return type='int' info="The URI port" field="port"/>
302 <arg name='URI' type='xmlURIPtr' info='the URI'/>
303 </function>
304 <function name='xmlURISetPort' file='python_accessor'>
305 <info>Set the port part of an URI.</info>
306 <return type='void'/>
307 <arg name='URI' type='xmlURIPtr' info='the URI'/>
308 <arg name='port' type='int' info='The URI port part'/>
309 </function>
310 <!-- xmlErrorPtr accessors -->
311 <function name='xmlErrorGetDomain' file='python_accessor'>
312 <info>What part of the library raised this error</info>
313 <return type='int' info="The error domain" field="domain"/>
314 <arg name='Error' type='xmlErrorPtr' info='the Error'/>
315 </function>
316 <function name='xmlErrorGetCode' file='python_accessor'>
317 <info>The error code, e.g. an xmlParserError</info>
318 <return type='int' info="The error code" field="code"/>
319 <arg name='Error' type='xmlErrorPtr' info='the Error'/>
320 </function>
321 <function name='xmlErrorGetMessage' file='python_accessor'>
322 <info>human-readable informative error message</info>
323 <return type='const char *' info="The error message" field="message"/>
324 <arg name='Error' type='xmlErrorPtr' info='the Error'/>
325 </function>
326 <function name='xmlErrorGetLevel' file='python_accessor'>
327 <info>how consequent is the error</info>
328 <return type='int' info="The error level" field="level"/>
329 <arg name='Error' type='xmlErrorPtr' info='the Error'/>
330 </function>
331 <function name='xmlErrorGetFile' file='python_accessor'>
332 <info>the filename</info>
333 <return type='const char *' info="The error file" field="file"/>
334 <arg name='Error' type='xmlErrorPtr' info='the Error'/>
335 </function>
336 <function name='xmlErrorGetLine' file='python_accessor'>
337 <info>the line number if available</info>
338 <return type='int' info="The error line" field="line"/>
339 <arg name='Error' type='xmlErrorPtr' info='the Error'/>
340 </function>
341 <function name='xmlPythonCleanupParser' file='python'>
342 <info>Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it.</info>
343 <return type='void'/>
344 </function>
345 <function name='xmlMemoryUsed' file='python'>
346 <info>Returns the total amount of memory allocated by libxml2</info>
347 <return type='int' info='number of bytes allocated'/>
348 </function>
349 </symbols>
350</api>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette