
XPath defines node to be either xml_node or xml_attribute in pugixml terminology, so xpath_node is either xml_node or xml_attribute.
Public Member Functions | |
| xpath_node () | |
| Construct empty XPath node. | |
| xpath_node (const xml_node &node) | |
| Construct XPath node from XML node. | |
| xpath_node (const xml_attribute &attribute, const xml_node &parent) | |
| Construct XPath node from XML attribute. | |
| xml_node | node () const |
| Get XML node, if any. | |
| xml_attribute | attribute () const |
| Get XML attribute, if any. | |
| xml_node | parent () const |
| Get parent of contained XML attribute, if any. | |
| operator unspecified_bool_type () const | |
| Safe bool conversion. | |
| bool | operator! () const |
| bool | operator== (const xpath_node &n) const |
| Compares two XPath nodes. | |
| bool | operator!= (const xpath_node &n) const |
| Compares two XPath nodes. | |
|
|
Construct XPath node from XML node.
|
|
||||||||||||
|
Construct XPath node from XML attribute.
|
|
|
Get XML node, if any.
|
|
|
Get XML attribute, if any.
|
|
|
Get parent of contained XML attribute, if any.
|
|
|
Safe bool conversion. Allows xpath_node to be used in a context where boolean variable is expected, such as 'if (node)'. |
|
|
Compares two XPath nodes.
|
|
|
Compares two XPath nodes.
|
1.4.6-NO