diff options
Diffstat (limited to 'xml/qname.hxx')
-rw-r--r-- | xml/qname.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xml/qname.hxx b/xml/qname.hxx index 9aff532..dcb5c82 100644 --- a/xml/qname.hxx +++ b/xml/qname.hxx @@ -38,6 +38,9 @@ namespace xml std::string& name () {return name_;} std::string& prefix () {return prefix_;} + bool + empty () const {return name_.empty () && ns_.empty ();} + // String representation in the [<namespace>#]<name> form. // std::string |