XmlToIon XmlToIon

yaml
type: "io.kestra.plugin.serdes.xml.XmlToIon"

Read a XML file and write it to an ion serialized data file.

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

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Source file URI

charset

  • Type: string
  • Dynamic:
  • Required:
  • Default: UTF-8

The name of a supported charset

Default value is UTF-8.

parserConfiguration

query

  • Type: string
  • Dynamic:
  • Required:

XPath use to query in the XML file.

Outputs

uri

  • Type: string
  • Required:
  • Format: uri

URI of a temporary result file

Definitions

io.kestra.plugin.serdes.xml.XmlToIon-ParserConfiguration

Properties

forceList
  • Type: array
  • SubType: string
  • Dynamic:
  • Required:

List of XML tags that must be parsed as lists.

Was this page helpful?