[gxml] Fixed parse root's default namespace
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Fixed parse root's default namespace
- Date: Mon, 23 Jan 2017 17:44:54 +0000 (UTC)
commit e824126f04fe6d0e4d986dbc1c2712f71d7743f6
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Jan 23 10:26:48 2017 -0600
Fixed parse root's default namespace
Avoid to redefine element's namespace.
gxml/XParser.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gxml/XParser.vala b/gxml/XParser.vala
index 63efbca..e0d4e51 100644
--- a/gxml/XParser.vala
+++ b/gxml/XParser.vala
@@ -1,4 +1,5 @@
-/* TNode.vala
+/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
+/* XParser.vala
*
* Copyright (C) 2016 Daniel Espinosa <esodan gmail com>
*
@@ -227,6 +228,7 @@ public class GXml.XParser : Object, GXml.Parser {
#if DEBUG
GLib.message ("Property Read: "+aprefix+":"+nsp+"="+ansuri);
#endif
+ if (nsp == element.prefix && ansuri == element.namespace_uri) continue;
string ansp = nsp;
if (nsp != "xmlns")
ansp = aprefix+":"+nsp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]