23 #include <libxml/parser.h>
41 put((
const char *)data);
57 doc = xmlParseMemory(data, strlen(data));
61 msg <<
"Problem in conversion: XML Document not parsed successfully ";
62 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
65 cur = xmlDocGetRootElement(
doc);
70 msg <<
"Problem in conversion: empty XML Document";
71 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
76 if ((!xmlStrcmp(cur->name, (
const xmlChar *)
"value")))
87 msg <<
"Problem in conversion: incorrect XML value";
88 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
93 PyObject_Print(ob,stderr,Py_PRINT_RAW);
98 DEBTRACE(
"ob refcnt: " << ob->ob_refcnt);
TypeCode * edGetType() const
Base class for all ports.
Base class for Proxy Input Ports.
virtual void put(const void *data)
XmlPython(InputPyPort *p)
PyObject * convertXmlPyObject(const TypeCode *t, xmlDocPtr doc, xmlNodePtr cur)