Commit 7560d548 authored by Brian Panneton's avatar Brian Panneton
Browse files

FIX: Corrected how xml content was gathered.

Before, if you had an element and text within an element, you were unable to get the text unless it was before the element.
    Example: <node>text<param/></node> (this will work)
             <node><param/>text</node> (this would not work)
parent 43de25a5
......@@ -120,9 +120,9 @@ int globalCount;
std::map<std::string, std::string> itemProperties;
if(currNode->children != NULL)
if(currNode->children->content != NULL)
itemProperties["Content"] = (const char *)currNode->children->content;
else itemProperties["Content"] = "";
xmlChar *content = xmlNodeGetContent(currNode);
itemProperties["Content"] = (char*)content;
itemProperties["XMLDir"] = mXMLDir;
xmlAttrPtr currAttribute = currNode->properties;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment