projects
/
libcxml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ff4c60
)
Add ::namespace_prefix method.
author
Carl Hetherington
<cth@carlh.net>
Sun, 25 Aug 2013 10:05:05 +0000
(11:05 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 25 Aug 2013 10:05:05 +0000
(11:05 +0100)
src/cxml.cc
patch
|
blob
|
history
src/cxml.h
patch
|
blob
|
history
diff --git
a/src/cxml.cc
b/src/cxml.cc
index 20d06ee89d0b0bc907b9ddb4bde2b764113a0409..05053ab1204667f44491d9030c9767607f4b57a9 100644
(file)
--- a/
src/cxml.cc
+++ b/
src/cxml.cc
@@
-196,6
+196,12
@@
cxml::Node::content () const
return content;
}
+string
+cxml::Node::namespace_prefix () const
+{
+ return _node->get_namespace_prefix ();
+}
+
cxml::File::File (string file, string root_name)
{
if (!filesystem::exists (file)) {
diff --git
a/src/cxml.h
b/src/cxml.h
index 9581adce01e8ea6b0f922b4df00d0656217997bc..8a7a82cb266b72089fd412a452e6713d0ea6be76 100644
(file)
--- a/
src/cxml.h
+++ b/
src/cxml.h
@@
-146,6
+146,9
@@
public:
/** @return The content of this node */
std::string content () const;
+ /** @return namespace prefix of this node */
+ std::string namespace_prefix () const;
+
boost::shared_ptr<Node> node_child (std::string) const;
boost::shared_ptr<Node> optional_node_child (std::string) const;