#include <Config_WidgetReader.h>
#include <Config_Keywords.h>
-#include <libxml\parser.h>
-#include <libxml\tree.h>
-#include <libxml\xpath.h>
-#include <libxml\xmlstring.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
+#include <libxml/xpath.h>
+#include <libxml/xmlstring.h>
#ifdef _DEBUG
#include <iostream>
void Config_WidgetReader::processNode(xmlNodePtr theNode)
{
if (isNode(theNode, NODE_FEATURE, NULL)) {
- xmlBufferPtr buffer = xmlBufferCreate();
- int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 1);
+ std::string result = "";
std::string aNodeName = getProperty(theNode, _ID);
- myWidgetCache[aNodeName] = std::string((char*) buffer->content);
+ if (hasChild(theNode)) {
+ xmlBufferPtr buffer = xmlBufferCreate();
+ int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 1);
+ result = std::string((char*) buffer->content);
+ }
+ myWidgetCache[aNodeName] = result;
}
}