
XmlToIon
Convert an XML file into ION.
XmlToIon
Convert an XML file into ION.
Convert an XML file into ION.
yaml
type: "io.kestra.plugin.serdes.xml.XmlToIon"Examples
Convert an XML file to the Amazon Ion format.
yaml
id: xml_to_ion
namespace: company.team
tasks:
- id: http_download
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/xml/products.xml
- id: to_ion
type: io.kestra.plugin.serdes.xml.XmlToIon
from: "{{ outputs.http_download.uri }}"
Properties
from*Requiredstring
Source file URI
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
charsetstring
Default
UTF-8The name of a supported charset
Default value is UTF-8.
parserConfigurationNon-dynamic
Definitions
XML parser configuration.
forceListarray
SubTypestring
List of XML tags that must be parsed as lists.
querystring
XPath use to query in the XML file.
Outputs
uristring
Format
uriURI of a temporary result file
Metrics
recordscounter
Number of records converted