summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cxml.cc6
-rw-r--r--src/cxml.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index 2fa6de3..185821c 100644
--- 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::Document::Document (string root_name)
: _root_name (root_name)
{
diff --git a/src/cxml.h b/src/cxml.h
index 533ce0e..7e20b3a 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 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;