Canonical representation for a name-namespace pair, without namespace prefix, in James Clark's Universal Names notation.
More...
#include <element.hpp>
Canonical representation for a name-namespace pair, without namespace prefix, in James Clark's Universal Names notation.
A QName is essentially a canonical string in the form: {http://namespace.uri/}tag-name
etree::QName::QName |
( |
const string & |
ns, |
|
|
const string & |
tag |
|
) |
| |
Create a QName from a namespace-tag pair.
- Parameters
-
etree::QName::QName |
( |
const QName & |
other | ) |
|
etree::QName::QName |
( |
const string & |
qname | ) |
|
Create a QName from Universal Name notation.
- Parameters
-
etree::QName::QName |
( |
const char * |
qname | ) |
|
Create a QName from Universal Name notation.
- Parameters
-
bool etree::QName::equals |
( |
const char * |
ns, |
|
|
const char * |
tag |
|
) |
| const |
Return true if the (raw) strings match the QName's content.
- Parameters
-
ns | NULL, or the namespace URI. |
tag | The tag. |
bool etree::QName::operator!= |
( |
const QName & |
other | ) |
const |
Compare this QName to another.
- Parameters
-
- Returns
- False if equal.
bool etree::QName::operator== |
( |
const QName & |
other | ) |
const |
Compare this QName to another.
- Parameters
-
- Returns
- True if equal.
string etree::QName::tostring |
( |
| ) |
const |
Serialize a QName in Universal Name notation.
- Returns
- QName in Universal Name notation.
The documentation for this class was generated from the following files: