Add namespace_uri method.
authorCarl Hetherington <cth@carlh.net>
Wed, 4 Sep 2013 20:10:28 +0000 (21:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 4 Sep 2013 20:10:28 +0000 (21:10 +0100)
src/cxml.cc
src/cxml.h

index 185821c7eab3c42d1265c8743a39569960217547..95b963b4723d0c561befa1650c77e4ba49fff10c 100644 (file)
@@ -196,6 +196,12 @@ cxml::Node::content () const
        return content;
 }
 
+string
+cxml::Node::namespace_uri () const
+{
+       return _node->get_namespace_uri ();
+}
+
 string
 cxml::Node::namespace_prefix () const
 {
index 7e20b3afdcd7ea27d36b4b6396fd44d923247342..5bccfb03b12656281c85b13710bc19ffe42450bc 100644 (file)
@@ -147,6 +147,9 @@ public:
        /** @return The content of this node */
        std::string content () const;
 
+       /** @return namespace URI of this node */
+       std::string namespace_uri () const;
+
        /** @return namespace prefix of this node */
        std::string namespace_prefix () const;