blob: 24e28af08db8d79890e019c5a045cf12a33364cd [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>
Daniel Veillardc575b992002-02-08 13:28:40 +000039 <!-- xmlParserCtxtPtr accessors -->
Daniel Veillard3ce52572002-02-03 15:08:05 +000040 <function name='xmlParserGetDoc' file='python_accessor'>
41 <info>Get the document tree from a parser context.</info>
42 <return type='xmlDocPtr' info="the document tree" field="myDoc"/>
Daniel Veillard26f1dcc2002-02-03 16:53:19 +000043 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
44 </function>
45 <function name='xmlParserGetWellFormed' file='python_accessor'>
46 <info>Get the well formed information from a parser context.</info>
47 <return type='int' info="the wellFormed field" field="wellFormed"/>
48 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
49 </function>
50 <function name='xmlParserGetIsValid' file='python_accessor'>
51 <info>Get the validity information from a parser context.</info>
52 <return type='int' info="the valid field" field="valid"/>
53 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
54 </function>
55 <function name='xmlParserSetValidate' file='python_accessor'>
56 <info>Switch the parser to validation mode.</info>
57 <return type='void'/>
58 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
59 <arg name='validate' type='int' info='1 to activate validation'/>
60 </function>
61 <function name='xmlParserSetReplaceEntities' file='python_accessor'>
62 <info>Switch the parser to replace entities.</info>
63 <return type='void'/>
64 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
65 <arg name='replaceEntities' type='int' info='1 to replace entities'/>
66 </function>
67 <function name='xmlParserSetPedantic' file='python_accessor'>
68 <info>Switch the parser to be pedantic.</info>
69 <return type='void'/>
70 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
71 <arg name='pedantic' type='int' info='1 to run in pedantic mode'/>
72 </function>
73 <function name='xmlParserSetLoadSubset' file='python_accessor'>
74 <info>Switch the parser to load the DTD without validating.</info>
75 <return type='void'/>
76 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
77 <arg name='loadsubset' type='int' info='1 to load the DTD'/>
78 </function>
79 <function name='xmlParserSetLineNumbers' file='python_accessor'>
80 <info>Switch on the generation of line number for elements nodes.</info>
81 <return type='void'/>
82 <arg name='ctxt' type='xmlParserCtxtPtr' info='the parser context'/>
83 <arg name='linenumbers' type='int' info='1 to save line numbers'/>
Daniel Veillard3ce52572002-02-03 15:08:05 +000084 </function>
Daniel Veillard4e1b26c2002-02-03 20:13:06 +000085 <function name='xmlDebugMemory' file='python'>
86 <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>
87 <return type='int' info="returns the number of bytes allocated and not freed"/>
88 <arg name='activate' type='int' info='1 switch on memory debugging 0 switch it off'/>
89 </function>
90 <function name='xmlDumpMemory' file='python'>
91 <info>dump the memory allocated in the file .memdump</info>
92 <return type='void'/>
93 </function>
Daniel Veillardc575b992002-02-08 13:28:40 +000094 <!-- xmlNsPtr accessors -->
Daniel Veillard36eea2d2002-02-04 00:17:01 +000095 <function name='xmlNodeGetNs' file='python_accessor'>
96 <info>Get the namespace of a node</info>
97 <return type='xmlNsPtr' info="The namespace or None"/>
98 <arg name='node' type='xmlNodePtr' info='the node'/>
99 </function>
100 <function name='xmlNodeGetNsDefs' file='python_accessor'>
101 <info>Get the namespace of a node</info>
102 <return type='xmlNsPtr' info="The namespace or None"/>
103 <arg name='node' type='xmlNodePtr' info='the node'/>
104 </function>
Daniel Veillardc575b992002-02-08 13:28:40 +0000105 <!-- xmlXPathParserContextPtr accessors -->
106 <function name='xmlXPathParserGetContext' file='python_accessor'>
107 <info>Get the xpathContext from an xpathParserContext</info>
108 <return type='xmlXPathContextPtr' info="The XPath context" field="context"/>
109 <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath parser context'/>
110 </function>
111 <function name='xmlXPathGetContextDoc' file='python_accessor'>
112 <info>Get the doc from an xpathContext</info>
113 <return type='xmlDocPtr' info="The doc context" field="doc"/>
114 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
115 </function>
116 <function name='xmlXPathGetContextNode' file='python_accessor'>
117 <info>Get the current node from an xpathContext</info>
118 <return type='xmlNodePtr' info="The node context" field="node"/>
119 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
120 </function>
121 <function name='xmlXPathGetContextPosition' file='python_accessor'>
122 <info>Get the current node from an xpathContext</info>
123 <return type='int' info="The node context" field="proximityPosition"/>
124 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
125 </function>
126 <function name='xmlXPathGetContextSize' file='python_accessor'>
127 <info>Get the current node from an xpathContext</info>
128 <return type='int' info="The node context" field="contextSize"/>
129 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
130 </function>
131 <function name='xmlXPathGetFunction' file='python_accessor'>
132 <info>Get the current function name xpathContext</info>
133 <return type='const xmlChar *' info="The function name" field="function"/>
134 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
135 </function>
136 <function name='xmlXPathGetFunctionURI' file='python_accessor'>
137 <info>Get the current function name URI xpathContext</info>
138 <return type='const xmlChar *' info="The function name URI" field="functionURI"/>
139 <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
140 </function>
Daniel Veillard9589d452002-02-02 10:28:17 +0000141 </symbols>
142</api>