summaryrefslogtreecommitdiff
path: root/src/cxml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxml.cc')
-rw-r--r--src/cxml.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index b065b37..7096f71 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -248,6 +248,13 @@ cxml::Node::namespace_prefix () const
return _node->get_namespace_prefix ();
}
+
+bool
+cxml::Node::is_text() const
+{
+ return dynamic_cast<const xmlpp::TextNode*>(_node);
+}
+
cxml::Document::Document (string root_name)
: _root_name (root_name)
{