diff options
Diffstat (limited to 'src/plugins/xml')
| -rw-r--r-- | src/plugins/xml/XmlParser.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/xml/XmlParser.cpp b/src/plugins/xml/XmlParser.cpp index 4f956d5..6d77138 100644 --- a/src/plugins/xml/XmlParser.cpp +++ b/src/plugins/xml/XmlParser.cpp @@ -132,7 +132,8 @@ public:  		// try to find a FieldDescriptor for the given tag if we are not in a  		// field already. -		if (!inField && parent != nullptr && parent->hasField(name())) { +		if (!inField && parent != nullptr && +		    parent->getDescriptor()->hasField(name())) {  			Rooted<DocumentField> field{new DocumentField(  			    parentNode->getManager(), fieldName, parentNode)};  			field->setLocation(location()); @@ -1315,7 +1316,6 @@ static void xmlStartElementHandler(void *p, const XML_Char *name,  		    keyLoc.getStart());  		args.emplace(key, value.second);  	} -	  	// Call the start function  	std::string nameStr(name);  | 
