dml: Only parse element nodes in Record XML

This fixes spaces and other oddities in the official modules.
This commit is contained in:
Joshua Scott 2018-04-06 04:01:22 +01:00
parent 8d7348aa81
commit 3922ca4b39
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ namespace dml
for (auto *field_node = node->first_node();
field_node; field_node = field_node->next_sibling())
{
if (field_node->type() != rapidxml::node_type::node_element)
continue;
FieldBase *field = FieldBase::create_from_xml(field_node);
if (has_field(field->get_name()))
{