Gambas Documentation - /comp/gb.xml/xmlelement/getchildrenbytagname

# XmlElement.GetChildrenByTagName (gb.xml)

Function GetChildrenByTagName ( TagName As String [ , Mode As Integer, Depth As Integer ] ) As XmlElement[]

Returns all the child elements whose tag name matches Name.

The Mode argument defines the comparison method used. It supports GB.Binary, GB.IgnoreCase and GB.Like.
See Predefined Constants for further information.

The Depth argument defines where to stop the search : a negative value will stop only at the end of the tree (default), `1` will check only the current element, `2` will check only the direct children of the element, and so on ...