mirror of https://github.com/SeanOMik/libki.git
dml: Only parse element nodes in Record XML
This fixes spaces and other oddities in the official modules.
This commit is contained in:
parent
8d7348aa81
commit
3922ca4b39
|
@ -110,6 +110,9 @@ namespace dml
|
||||||
for (auto *field_node = node->first_node();
|
for (auto *field_node = node->first_node();
|
||||||
field_node; field_node = field_node->next_sibling())
|
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);
|
FieldBase *field = FieldBase::create_from_xml(field_node);
|
||||||
if (has_field(field->get_name()))
|
if (has_field(field->get_name()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue