Skip to content

Write XML

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

Saves XML text to a file. It is the last step after modifying an XML with XML Set Value or XML Add Element. Returns the written path.

Write content to the path file. By default it formats the XML with indentation (indent = true) to make it readable.

ParameterEditorDescription
pathexpressionPath of the file to write.
contentexpressionThe XML text to save.
ParameterEditorDescription
encodingtextCoding. By default "utf-8".
indentbooleanFormat with indentation. By default true.

Returns a string with the file path written.

Read XML path = = ruta → output: xml
XML Set Value xml = = xml xpath = "//Estado" value = "Procesado" → output: xmlNuevo
Write XML path = = "C:/salida/factura.xml" content = = xmlNuevo