- attempt to look for corrupt XML data

This commit is contained in:
Mark Vejvoda 2011-01-10 21:19:54 +00:00
parent 35925a98a6
commit a9534e727e

View File

@ -182,6 +182,10 @@ XmlTree::~XmlTree(){
XmlNode::XmlNode(DOMNode *node){
if(node == NULL || node->getNodeName() == NULL) {
throw runtime_error("XML structure seems to be corrupt!");
}
//get name
char str[strSize];
XMLString::transcode(node->getNodeName(), str, strSize-1);