From bc26c8f129dd0b64f067624dea97259a664bbef1 Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Thu, 6 May 2004 17:02:18 +0000 Subject: *** empty log message *** --- python/xml/py_xml.c | 16 ++++++++++++++++ python/xml/py_xml.h | 1 + 2 files changed, 17 insertions(+) (limited to 'python/xml') 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); -- cgit