26 #include <libxml/parser.h>
33 using namespace YACS::ENGINE;
44 put((
const char *)data);
58 doc = xmlParseMemory(data, strlen(data));
62 msg <<
"Problem in conversion: XML Document not parsed successfully ";
63 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
66 cur = xmlDocGetRootElement(doc);
71 msg <<
"Problem in conversion: empty XML Document";
72 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
77 if ((!xmlStrcmp(cur->name, (
const xmlChar *)
"value")))
90 msg <<
"Problem in conversion: kind= " << edGetType()->kind() ;
91 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
102 msg <<
"Problem in conversion: incorrect XML value";
103 msg <<
" (" << __FILE__ <<
":" << __LINE__ <<
")";
109 _port->setStringRef(data);