projects
/
libcxml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b13eb4
)
Add namespace_uri method.
author
Carl Hetherington
<cth@carlh.net>
Wed, 4 Sep 2013 20:10:28 +0000
(21:10 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 4 Sep 2013 20:10:28 +0000
(21:10 +0100)
src/cxml.cc
patch
|
blob
|
history
src/cxml.h
patch
|
blob
|
history
diff --git
a/src/cxml.cc
b/src/cxml.cc
index 185821c7eab3c42d1265c8743a39569960217547..95b963b4723d0c561befa1650c77e4ba49fff10c 100644
(file)
--- 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 7e20b3afdcd7ea27d36b4b6396fd44d923247342..5bccfb03b12656281c85b13710bc19ffe42450bc 100644
(file)
--- 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;