From fa8cc0e6e6e75255ab0875b6a8f120f3100f6a4f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 4 Sep 2013 21:10:28 +0100 Subject: [PATCH] Add namespace_uri method. --- src/cxml.cc | 6 ++++++ src/cxml.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/cxml.cc b/src/cxml.cc index 185821c..95b963b 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -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 { diff --git a/src/cxml.h b/src/cxml.h index 7e20b3a..5bccfb0 100644 --- a/src/cxml.h +++ b/src/cxml.h @@ -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; -- 2.30.2