Function node
Synopsis
#include <src/pugixml.hpp>
xml_node node() const
Description
Get node/attribute, if any.
Mentioned in
- Getting Started / Example
- Manual / 8.1. XPath types
- Samples / xpath_query
- Samples / xpath_select
- Samples / xpath_variables
Source
Lines 12196-12199 in src/pugixml.cpp. Line 1328 in src/pugixml.hpp.
PUGI__FN xml_node xpath_node::node() const
{
return _attribute ? xml_node() : _node;
}