diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-04 21:10:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-04 21:10:28 +0100 |
| commit | fa8cc0e6e6e75255ab0875b6a8f120f3100f6a4f (patch) | |
| tree | 7bc66a562c4db99145f5af3ac27cd186e5ca836b /src | |
| parent | 6b13eb45ee64bb7b8c41a299aaba79bb39edd076 (diff) | |
Add namespace_uri method.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cxml.cc | 6 | ||||
| -rw-r--r-- | src/cxml.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc index 185821c..95b963b 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -197,6 +197,12 @@ cxml::Node::content () const } string +cxml::Node::namespace_uri () const +{ + return _node->get_namespace_uri (); +} + +string cxml::Node::namespace_prefix () const { return _node->get_namespace_prefix (); @@ -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; |
