[gxml] Fixed parsing GomElement and GomCollections
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Fixed parsing GomElement and GomCollections
- Date: Sat, 21 Jan 2017 03:24:51 +0000 (UTC)
commit a6a49fb9de2484c7b66ec26b161ddc3e68dd58c8
Author: Daniel Espinosa <esodan gmail com>
Date: Fri Jan 20 15:04:54 2017 -0600
Fixed parsing GomElement and GomCollections
gxml/XParser.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gxml/XParser.vala b/gxml/XParser.vala
index 932433b..cc775be 100644
--- a/gxml/XParser.vala
+++ b/gxml/XParser.vala
@@ -128,12 +128,11 @@ public class GXml.XParser : Object, GXml.Parser {
if (!move_next_node ()) break;
}
read_element (node as DomElement);
- if (!move_next_node ()) return;
}
#if DEBUG
GLib.message ("Parsing child nodes of: "+node.node_name);
#endif
- if (current_is_element ())
+ if (current_is_element () && (node is DomDocument))
read_child_element (node);
else
read_child_nodes (node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]