GroveNodeWithNamespace — Base class for GroveElement and GroveAttr.
class GroveNodeWithNamespace : public GroveNodeSernaApi::GroveNode { public: // construct/copy/destruct GroveNodeWithNamespace(SernaApiBase *); ~GroveNodeWithNamespace(); // public member functions SString localName() const; SString xmlNsPrefix() const; SString xmlNsUri() const; SString xmlElNsUri() const; SString getXmlNsByPrefix(const SString &) const; SString getPrefixByXmlNs(const SString &) const; void addToPrefixMap(const SString &, const SString &) ; void eraseFromPrefixMap(const SString &) ; };
GroveNodeWithNamespace
public member functionsSString localName() const;
Returns local name (without namespace) of an element or attribute.
SString xmlNsPrefix() const;
Returns namespace prefix for current element or attribute. Returns empty string if there is no namespace prefix defined for this node.
SString xmlNsUri() const;
Returns string corresponding to namespace URI.
SString xmlElNsUri() const;
Attributes only: returns URI of XML namespace of a parent element.
SString getXmlNsByPrefix(const SString & prefix) const;
Get namespace URI by xmlns prefix in given context.
SString getPrefixByXmlNs(const SString & uri) const;
Get the nearest defined prefix which defines ns. If not found, returns null string.
Add prefix/URI pair mapping to the current node.
Remove prefix from namespace prefix map of a current node.