diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-06 17:02:18 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-06 17:02:18 +0000 |
| commit | bc26c8f129dd0b64f067624dea97259a664bbef1 (patch) | |
| tree | f35e72ec180cbde76c9d162c98154e0b86444cbd /python/xml | |
| parent | 60cffeeeb185ec2b9c70d8018b2cc61f11e2f945 (diff) | |
| download | lasso-bc26c8f129dd0b64f067624dea97259a664bbef1.tar.gz lasso-bc26c8f129dd0b64f067624dea97259a664bbef1.tar.xz lasso-bc26c8f129dd0b64f067624dea97259a664bbef1.zip | |
*** empty log message ***
Diffstat (limited to 'python/xml')
| -rw-r--r-- | python/xml/py_xml.c | 16 | ||||
| -rw-r--r-- | python/xml/py_xml.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c index 76384319..d13c835e 100644 --- a/python/xml/py_xml.c +++ b/python/xml/py_xml.c @@ -95,6 +95,22 @@ PyObject *node_get_child(PyObject *self, PyObject *args) { return (LassoNode_wrap(ret)); } +PyObject *node_get_content(PyObject *self, PyObject *args) { + PyObject *node_obj; + xmlChar *ret; + + if (CheckArgs(args, "O:node_get_content")) { + if(!PyArg_ParseTuple(args, (char *) "O:node_get_content", + &node_obj)) + return NULL; + } + else return NULL; + + ret = lasso_node_get_content(LassoNode_get(node_obj)); + + return (xmlCharPtr_wrap(ret)); +} + PyObject *node_unref(PyObject *self, PyObject *args) { PyObject *node_obj; diff --git a/python/xml/py_xml.h b/python/xml/py_xml.h index 52723113..afc4200f 100644 --- a/python/xml/py_xml.h +++ b/python/xml/py_xml.h @@ -39,6 +39,7 @@ PyObject *LassoNode_wrap(LassoNode *node); PyObject *node_dump(PyObject *self, PyObject *args); PyObject *node_get_attr_value(PyObject *self, PyObject *args); PyObject *node_get_child(PyObject *self, PyObject *args); +PyObject *node_get_content(PyObject *self, PyObject *args); PyObject *node_unref(PyObject *self, PyObject *args); PyObject *node_url_encode(PyObject *self, PyObject *args); PyObject *node_soap_envelop(PyObject *self, PyObject *args); |
