template<typename OutputIterator >
void pugi::xml_node::all_elements_by_name ( const char *  name,
OutputIterator  it 
) const

Get all elements from subtree with given name

Parameters:
name - node name
it - output iterator (for example, std::back_insert_iterator (result of std::back_inserter))