API Reference › Xml › Xml.count
method

Xml.count

Xml.count(node, tag: string) -> int

Returns how many direct children of node are named tag — e.g. the number of <layer> elements in a map.

← All symbols