XmlToIon
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 }}
.
charset string
Default
UTF-8
The name of a supported charset
Default value is UTF-8.
parserConfiguration Non-dynamicXmlToIon-ParserConfiguration
query string
XPath use to query in the XML file.
Outputs
uri string
Format
uri
URI of a temporary result file
Definitions
XML parser configuration.
forceList array
SubType string
List of XML tags that must be parsed as lists.