Skip to content

XML Query All

Type: xml-query-all  ·  Package: XML Activities v1.0.0  ·  Output: List

Evaluates an XPath expression and returns all matching values, as a list. Use it when the XML has several repeated elements (invoice lines, benefits, items) and you want to go through them all.

Applies the xpath to the xml and returns the text list of all matching elements. See XPath.

ParameterEditorDescription
xmlexpressionThe XML text (from Read XML).
xpathexpressionThe XPath expression, e.g. //Prestacion/Codigo.

Ninguno.

Returns a List with all matching values.

Read XML path = = ruta → output: xml
XML Query All xml = = xml xpath = "//Prestacion/Codigo" → output: codigos
Log message = = "Prestaciones: " + count(codigos)
For Each items = = codigos itemVariable = codigo
└─ activities:
... procesar cada código ...