[gxml] Better support of xmlns http://www.w3.org/2000/xmlns



commit c725b79de87848fb703eab7e7a40e48edc64b053
Author: Daniel Espinosa <esodan gmail com>
Date:   Sat Oct 21 10:10:44 2017 -0500

    Better support of xmlns http://www.w3.org/2000/xmlns

 gxml/GomElement.vala |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gxml/GomElement.vala b/gxml/GomElement.vala
index 7f7de8f..438d1cc 100644
--- a/gxml/GomElement.vala
+++ b/gxml/GomElement.vala
@@ -585,15 +585,15 @@ public class GXml.GomElement : GomNode,
       n = name;
     if (namespace_uri == null && p == "")
        throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If prefix is null, namespace URI should not 
be null"));
-    if (p == "xml" && namespace_uri != "http://www.w3.org/2000/xmlns/";)
-       throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If prefix is xml, namespace URI should be 
http://www.w3.org/2000/xmlns/";));
-    if (p == "xmlns" && (namespace_uri != "http://www.w3.org/2000/xmlns/";
-            && namespace_uri != "http://www.w3.org/2000/xmlns";))
-       throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If attribute's prefix is xmlns, namespace 
URI should be http://www.w3.org/2000/xmlns/";));
+    if (p == "xml" && namespace_uri != "http://www.w3.org/2000/xmlns/"; && namespace_uri != 
"http://www.w3.org/2000/xmlns";)
+       throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If prefix is xml, namespace URI should be 
http://www.w3.org/2000/xmlns";));
+    if (p == "xmlns" && namespace_uri != "http://www.w3.org/2000/xmlns/";
+            && namespace_uri != "http://www.w3.org/2000/xmlns";)
+       throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If attribute's prefix is xmlns, namespace 
URI should be http://www.w3.org/2000/xmlns";));
     if (p == "" && n == "xmlns"
         && (namespace_uri != "http://www.w3.org/2000/xmlns/";
             && namespace_uri != "http://www.w3.org/2000/xmlns";))
-       throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If attribute's name is xmlns, namespace URI 
should be http://www.w3.org/2000/xmlns/";));
+       throw new DomError.NAMESPACE_ERROR (_("Invalid namespace. If attribute's name is xmlns, namespace URI 
should be http://www.w3.org/2000/xmlns";));
     if (p == "" && n != "xmlns" && n != "xml")
       throw new DomError.NAMESPACE_ERROR (_("Invalid attribute name. No prefixed attributes should use xmlns 
name"));
     var a = new GomAttr.namespace (this, namespace_uri, p, n, value);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]