Documentation de Gambas - /comp/gb.xml.html/xmlelement/getchildrenbyfilter

/comp/gb.xml.html/xmlelement/getchildrenbyfilter

# XmlElement.GetChildrenByFilter (gb.xml.html)

Function GetChildrenByFilter ( Filter As String [ , Depth As Integer ] ) As XmlElement[]

Returns all the child elements that matches the given CSS Filter (i.e. a combination of CSS selectors).

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 direct children of the element, and so on ...

For further information about the supported CSS selectors, see the MatchFilter method.