Read XML
Read XML
Section titled “Read XML”Type: xml-read · Package: XML Activities v1.0.0 · Output: string
Reads an XML file and returns its contents as text. It is the first step of the XML flow: loading the document and then consulting or modifying it with the other activities.
How it works
Section titled “How it works”Reads the path file and returns its contents as a string. Pass it as xml to the query and modify activities.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | XML file path. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
encoding | text | Coding. By default "utf-8". |
Output
Section titled “Output”Returns a string with the XML content.
Example
Section titled “Example”Read XML path = = ruta → output: xmlXML Query Text xml = = xml xpath = "//Factura/Numero" → output: numeroRelated activities
Section titled “Related activities”- XML Query Text / XML Query All — extraer datos.
- Write XML — save the modified XML.