Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <api name='libxml2-python'> |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 3 | <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 Veillard | a94ec6f | 2002-03-01 13:00:53 +0000 | [diff] [blame] | 12 | <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 Veillard | 5d81903 | 2002-02-02 21:49:17 +0000 | [diff] [blame] | 17 | <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 Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 23 | <function name='xmlCreatePushParser' file='python'> |
Daniel Veillard | 4e1b26c | 2002-02-03 20:13:06 +0000 | [diff] [blame] | 24 | <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 Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 33 | <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 Veillard | 8d24cc1 | 2002-03-05 15:41:29 +0000 | [diff] [blame] | 39 | <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 Veillard | c6d4a93 | 2002-09-12 15:00:57 +0000 | [diff] [blame] | 53 | <function name='xmlCreateOutputBuffer' file='python'> |
| 54 | <info>Create a libxml2 output buffer from a Python file</info> |
| 55 | <return type='xmlOutputBufferPtr' info="the output buffer"/> |
| 56 | <arg name='file' type='pythonObject' info='the Python file'/> |
| 57 | <arg name='encoding' type='xmlChar *' info='an optionnal encoding'/> |
| 58 | </function> |
| 59 | <function name='xmlCreateInputBuffer' file='python'> |
| 60 | <info>Create a libxml2 input buffer from a Python file</info> |
| 61 | <return type='xmlParserInputBufferPtr' info="the input 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='xmlSetEntityLoader' file='python'> |
| 66 | <info>Set the entity resolver as a python function</info> |
| 67 | <return type='int' info="0 in case of success, -1 for error"/> |
| 68 | <arg name='resolver' type='pythonObject' info='the Python function'/> |
| 69 | </function> |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 70 | <!-- xmlParserCtxtPtr accessors --> |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 71 | <function name='xmlParserGetDoc' file='python_accessor'> |
| 72 | <info>Get the document tree from a parser context.</info> |
| 73 | <return type='xmlDocPtr' info="the document tree" field="myDoc"/> |
Daniel Veillard | 26f1dcc | 2002-02-03 16:53:19 +0000 | [diff] [blame] | 74 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 75 | </function> |
| 76 | <function name='xmlParserGetWellFormed' file='python_accessor'> |
| 77 | <info>Get the well formed information from a parser context.</info> |
| 78 | <return type='int' info="the wellFormed field" field="wellFormed"/> |
| 79 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 80 | </function> |
| 81 | <function name='xmlParserGetIsValid' file='python_accessor'> |
| 82 | <info>Get the validity information from a parser context.</info> |
| 83 | <return type='int' info="the valid field" field="valid"/> |
| 84 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 85 | </function> |
| 86 | <function name='xmlParserSetValidate' file='python_accessor'> |
| 87 | <info>Switch the parser to validation mode.</info> |
| 88 | <return type='void'/> |
| 89 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 90 | <arg name='validate' type='int' info='1 to activate validation'/> |
| 91 | </function> |
| 92 | <function name='xmlParserSetReplaceEntities' file='python_accessor'> |
| 93 | <info>Switch the parser to replace entities.</info> |
| 94 | <return type='void'/> |
| 95 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 96 | <arg name='replaceEntities' type='int' info='1 to replace entities'/> |
| 97 | </function> |
| 98 | <function name='xmlParserSetPedantic' file='python_accessor'> |
| 99 | <info>Switch the parser to be pedantic.</info> |
| 100 | <return type='void'/> |
| 101 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 102 | <arg name='pedantic' type='int' info='1 to run in pedantic mode'/> |
| 103 | </function> |
| 104 | <function name='xmlParserSetLoadSubset' file='python_accessor'> |
| 105 | <info>Switch the parser to load the DTD without validating.</info> |
| 106 | <return type='void'/> |
| 107 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 108 | <arg name='loadsubset' type='int' info='1 to load the DTD'/> |
| 109 | </function> |
| 110 | <function name='xmlParserSetLineNumbers' file='python_accessor'> |
| 111 | <info>Switch on the generation of line number for elements nodes.</info> |
| 112 | <return type='void'/> |
| 113 | <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/> |
| 114 | <arg name='linenumbers' type='int' info='1 to save line numbers'/> |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 115 | </function> |
Daniel Veillard | 4e1b26c | 2002-02-03 20:13:06 +0000 | [diff] [blame] | 116 | <function name='xmlDebugMemory' file='python'> |
| 117 | <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> |
| 118 | <return type='int' info="returns the number of bytes allocated and not freed"/> |
| 119 | <arg name='activate' type='int' info='1 switch on memory debugging 0 switch it off'/> |
| 120 | </function> |
| 121 | <function name='xmlDumpMemory' file='python'> |
| 122 | <info>dump the memory allocated in the file .memdump</info> |
| 123 | <return type='void'/> |
| 124 | </function> |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 125 | <!-- xmlNsPtr accessors --> |
Daniel Veillard | 36eea2d | 2002-02-04 00:17:01 +0000 | [diff] [blame] | 126 | <function name='xmlNodeGetNs' file='python_accessor'> |
| 127 | <info>Get the namespace of a node</info> |
| 128 | <return type='xmlNsPtr' info="The namespace or None"/> |
| 129 | <arg name='node' type='xmlNodePtr' info='the node'/> |
| 130 | </function> |
| 131 | <function name='xmlNodeGetNsDefs' file='python_accessor'> |
| 132 | <info>Get the namespace of a node</info> |
| 133 | <return type='xmlNsPtr' info="The namespace or None"/> |
| 134 | <arg name='node' type='xmlNodePtr' info='the node'/> |
| 135 | </function> |
Daniel Veillard | 8d24cc1 | 2002-03-05 15:41:29 +0000 | [diff] [blame] | 136 | <!-- xmlXPathContextPtr accessors --> |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 137 | <function name='xmlXPathParserGetContext' file='python_accessor'> |
| 138 | <info>Get the xpathContext from an xpathParserContext</info> |
| 139 | <return type='xmlXPathContextPtr' info="The XPath context" field="context"/> |
| 140 | <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath parser context'/> |
| 141 | </function> |
| 142 | <function name='xmlXPathGetContextDoc' file='python_accessor'> |
| 143 | <info>Get the doc from an xpathContext</info> |
| 144 | <return type='xmlDocPtr' info="The doc context" field="doc"/> |
| 145 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 146 | </function> |
| 147 | <function name='xmlXPathGetContextNode' file='python_accessor'> |
| 148 | <info>Get the current node from an xpathContext</info> |
| 149 | <return type='xmlNodePtr' info="The node context" field="node"/> |
| 150 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 151 | </function> |
Daniel Veillard | 8d24cc1 | 2002-03-05 15:41:29 +0000 | [diff] [blame] | 152 | <function name='xmlXPathSetContextDoc' file='python_accessor'> |
| 153 | <info>Set the doc of an xpathContext</info> |
| 154 | <return type='void'/> |
| 155 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 156 | <arg name="doc" type='xmlDocPtr' info="The doc context"/> |
| 157 | </function> |
| 158 | <function name='xmlXPathSetContextNode' file='python_accessor'> |
| 159 | <info>Set the current node of an xpathContext</info> |
| 160 | <return type='void'/> |
| 161 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 162 | <arg name="node" type='xmlNodePtr' info="The node context"/> |
| 163 | </function> |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 164 | <function name='xmlXPathGetContextPosition' file='python_accessor'> |
| 165 | <info>Get the current node from an xpathContext</info> |
| 166 | <return type='int' info="The node context" field="proximityPosition"/> |
| 167 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 168 | </function> |
| 169 | <function name='xmlXPathGetContextSize' file='python_accessor'> |
| 170 | <info>Get the current node from an xpathContext</info> |
| 171 | <return type='int' info="The node context" field="contextSize"/> |
| 172 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 173 | </function> |
| 174 | <function name='xmlXPathGetFunction' file='python_accessor'> |
| 175 | <info>Get the current function name xpathContext</info> |
| 176 | <return type='const xmlChar *' info="The function name" field="function"/> |
| 177 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 178 | </function> |
| 179 | <function name='xmlXPathGetFunctionURI' file='python_accessor'> |
| 180 | <info>Get the current function name URI xpathContext</info> |
| 181 | <return type='const xmlChar *' info="The function name URI" field="functionURI"/> |
| 182 | <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/> |
| 183 | </function> |
Daniel Veillard | 6361da0 | 2002-02-23 10:10:33 +0000 | [diff] [blame] | 184 | <!-- xmlURIPtr accessors --> |
| 185 | <function name='xmlURIGetScheme' file='python_accessor'> |
| 186 | <info>Get the scheme part from an URI</info> |
| 187 | <return type='const char *' info="The URI scheme" field="scheme"/> |
| 188 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 189 | </function> |
| 190 | <function name='xmlURISetScheme' file='python_accessor'> |
| 191 | <info>Set the scheme part of an URI.</info> |
| 192 | <return type='void'/> |
| 193 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 194 | <arg name='scheme' type='char *' info='The URI scheme part'/> |
| 195 | </function> |
| 196 | <function name='xmlURIGetOpaque' file='python_accessor'> |
| 197 | <info>Get the opaque part from an URI</info> |
| 198 | <return type='const char *' info="The URI opaque" field="opaque"/> |
| 199 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 200 | </function> |
| 201 | <function name='xmlURISetOpaque' file='python_accessor'> |
| 202 | <info>Set the opaque part of an URI.</info> |
| 203 | <return type='void'/> |
| 204 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 205 | <arg name='opaque' type='char *' info='The URI opaque part'/> |
| 206 | </function> |
| 207 | <function name='xmlURIGetAuthority' file='python_accessor'> |
| 208 | <info>Get the authority part from an URI</info> |
| 209 | <return type='const char *' info="The URI authority" field="authority"/> |
| 210 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 211 | </function> |
| 212 | <function name='xmlURISetAuthority' file='python_accessor'> |
| 213 | <info>Set the authority part of an URI.</info> |
| 214 | <return type='void'/> |
| 215 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 216 | <arg name='authority' type='char *' info='The URI authority part'/> |
| 217 | </function> |
| 218 | <function name='xmlURIGetServer' file='python_accessor'> |
| 219 | <info>Get the server part from an URI</info> |
| 220 | <return type='const char *' info="The URI server" field="server"/> |
| 221 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 222 | </function> |
| 223 | <function name='xmlURISetServer' file='python_accessor'> |
| 224 | <info>Set the server part of an URI.</info> |
| 225 | <return type='void'/> |
| 226 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 227 | <arg name='server' type='char *' info='The URI server part'/> |
| 228 | </function> |
| 229 | <function name='xmlURIGetUser' file='python_accessor'> |
| 230 | <info>Get the user part from an URI</info> |
| 231 | <return type='const char *' info="The URI user" field="user"/> |
| 232 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 233 | </function> |
| 234 | <function name='xmlURISetUser' file='python_accessor'> |
| 235 | <info>Set the user part of an URI.</info> |
| 236 | <return type='void'/> |
| 237 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 238 | <arg name='user' type='char *' info='The URI user part'/> |
| 239 | </function> |
| 240 | <function name='xmlURIGetPath' file='python_accessor'> |
| 241 | <info>Get the path part from an URI</info> |
| 242 | <return type='const char *' info="The URI path" field="path"/> |
| 243 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 244 | </function> |
| 245 | <function name='xmlURISetPath' file='python_accessor'> |
| 246 | <info>Set the path part of an URI.</info> |
| 247 | <return type='void'/> |
| 248 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 249 | <arg name='path' type='char *' info='The URI path part'/> |
| 250 | </function> |
| 251 | <function name='xmlURIGetQuery' file='python_accessor'> |
| 252 | <info>Get the query part from an URI</info> |
| 253 | <return type='const char *' info="The URI query" field="query"/> |
| 254 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 255 | </function> |
| 256 | <function name='xmlURISetQuery' file='python_accessor'> |
| 257 | <info>Set the query part of an URI.</info> |
| 258 | <return type='void'/> |
| 259 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 260 | <arg name='query' type='char *' info='The URI query part'/> |
| 261 | </function> |
| 262 | <function name='xmlURIGetFragment' file='python_accessor'> |
| 263 | <info>Get the fragment part from an URI</info> |
| 264 | <return type='const char *' info="The URI fragment" field="fragment"/> |
| 265 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 266 | </function> |
| 267 | <function name='xmlURISetFragment' file='python_accessor'> |
| 268 | <info>Set the fragment part of an URI.</info> |
| 269 | <return type='void'/> |
| 270 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 271 | <arg name='fragment' type='char *' info='The URI fragment part'/> |
| 272 | </function> |
| 273 | <function name='xmlURIGetPort' file='python_accessor'> |
| 274 | <info>Get the port part from an URI</info> |
| 275 | <return type='int' info="The URI port" field="port"/> |
| 276 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 277 | </function> |
| 278 | <function name='xmlURISetPort' file='python_accessor'> |
| 279 | <info>Set the port part of an URI.</info> |
| 280 | <return type='void'/> |
| 281 | <arg name='URI' type='xmlURIPtr' info='the URI'/> |
| 282 | <arg name='port' type='int' info='The URI port part'/> |
| 283 | </function> |
Daniel Veillard | 9589d45 | 2002-02-02 10:28:17 +0000 | [diff] [blame] | 284 | </symbols> |
| 285 | </api> |