diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-29 16:48:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-29 16:48:34 +0100 |
| commit | 78ae9a1909db6e59aa990db060e9e5c8c580482b (patch) | |
| tree | ec9c5a6cf08ae3fcff57e9a622da6e86142676a5 /src | |
| parent | beac03175fbad7c850a20ee0c7c362e835d8b7b3 (diff) | |
| parent | fea74301948e42bb5fd2853ed84a68a4fb86bbc7 (diff) | |
Merge master.
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 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) { @@ -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; |
