Skip to content

XML Query Text

Type: xml-query-text  ·  Package: XML Activities v1.0.0  ·  Output: string

Evaluates an XPath expression over an XML and returns the first text value that matches. It is the way to extract data from an XML document: the number of an invoice, the name of a patient, a total.

Applies the xpath to the xml and returns the text of the first matching element (empty if there is none). See XPath in a scoop.

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

Ninguno.

Returns a string with the first matching value.

Read XML path = = ruta → output: xml
XML Query Text xml = = xml xpath = "//Factura/Total" → output: total
Log message = = "Total de la factura: " + total