rapidxml

◆ first_node()

template<class Ch = char>
xml_node< Ch > * first_node ( const Ch * name = 0,
std::size_t name_size = 0,
bool case_sensitive = true ) const
inline

Gets first child node, optionally matching node name.

Parameters
nameName of child to find, or 0 to return first child regardless of its name; this string doesn't have to be zero-terminated if name_size is non-zero
name_sizeSize of name, in characters, or 0 to have size calculated automatically from string
case_sensitiveShould name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
Returns
Pointer to found child, or 0 if not found.

References xml_base< char >::name(), and xml_base< char >::name_size().

Referenced by xml_node< Ch >::append_node(), memory_pool< Ch >::clone_node(), xml_node< Ch >::prepend_node(), xml_node< Ch >::remove_all_nodes(), xml_node< Ch >::remove_first_node(), xml_node< Ch >::remove_last_node(), and xml_node< Ch >::remove_node().