From 3922ca4b3985baab94780db002a515ab391d4b39 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Fri, 6 Apr 2018 04:01:22 +0100 Subject: [PATCH] dml: Only parse element nodes in Record XML This fixes spaces and other oddities in the official modules. --- src/dml/Record.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dml/Record.cpp b/src/dml/Record.cpp index 2085ebf..6cb7c0e 100644 --- a/src/dml/Record.cpp +++ b/src/dml/Record.cpp @@ -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())) {