23 #include <libxml/parser.h>
31 using namespace YACS::ENGINE;
41 DEBTRACE(
" XmlNeutral::put(const void *data)");
42 put((
const char *)data);
52 DEBTRACE(
"XmlNeutral::put " << 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__ <<
")";