-
Notifications
You must be signed in to change notification settings - Fork 18
pyio.xml_find_all
Daniel Flassig edited this page Apr 17, 2026
·
1 revision
Finds all xml nodes inside an xml tree that match the given location path
pyio.xml_find_all(start_element, path, namespaces)
start_element:xml_find_all(path, namespaces) | Parameter | Type | Description |
|---|---|---|
start_element |
xml_document or xml_element
|
The xml node from where to navigate the path |
path |
string |
Relative path. The syntax allows a subset of XPath 1.0, see pyio.xml_find |
namespaces |
{ prefix = namespace_uri, ... } |
Optional. A table that matches the namespace-prefixes used in the path parameter to actual namespace URI names |
| Type | Description |
|---|---|
table |
An array-style table containing every xml node that matches the path. Each entry is either an xml_element or a string, depending on which kind of node is identified by the final step of the path. The table is empty if nothing matches. |
The path parameter uses the same abbreviated XPath 1.0 subset as pyio.xml_find. Refer to that page for the full list of supported constructs (*, abc, pre:abc, text(), @attr, ...[n], and the / / // step separators).
Unlike pyio.xml_find, which stops at the first match, pyio.xml_find_all traverses the whole tree reachable by the path and returns every match in document order.
Minimum PYTHA Version: V26