#include "TypeConversions.hxx"
#include "XMLCORBAConv.hxx"
#include "CORBAXMLConv.hxx"
+#include "CORBAPorts.hxx"
+#include "TypeCode.hxx"
#include <libxml/parser.h>
#include <iostream>
DEBTRACE(data);
xmlDocPtr doc;
xmlNodePtr cur;
- CORBA::Any *a;
+ CORBA::Any *a=NULL;
doc = xmlParseMemory(data, strlen(data));
if (doc == NULL )
cur = cur->next;
}
xmlFreeDoc(doc);
+ if(a==NULL)
+ {
+ stringstream msg;
+ msg << "Problem in conversion: incorrect XML value";
+ msg << " (" << __FILE__ << ":" << __LINE__ << ")";
+ throw ConversionException(msg.str());
+ }
+
//xmlCleanupParser();
_port->put(a);
_port->setStringRef(data);