OPERATOR / VERSION 1.0

piflow_flatten_xml_parser

PiFlow · XML

Flatten a selected XML parent and optionally emit one row per child of a nested collection.

View manifest JSON ↗

Use this operator

operator: piflow_flatten_xml_parser@1.0

Configure remote_operator_library_urls with this repository’s origin. XStream verifies and caches artifacts by digest, sharing them across operators.

Named ports

  • sourceInputbytes

    One XML document supplied as bytes.

    Formats: Any compatible format
  • resultOutputrecords

    Records stream. Flatten a selected XML parent and optionally emit one row per child of a nested collection.

Output structure and samples are provided by operator inference.

Parameters

  • tagPathstringRequired

    Comma-separated path from the root to a single parent element.

    How to fill
    Comma-separated path from the root to a single parent element.
    Example value
    r,record
  • openTagstringRequired

    Name of the direct child containing repeated items. Use the empty string to skip expansion.

    How to fill
    Name of the direct child containing repeated items. Use the empty string to skip expansion.
    Example value
    items
  • returnFieldstringRequired

    Comma-separated parent fields to keep. Use the empty string to retain all scalar siblings.

    How to fill
    Comma-separated parent fields to keep. Use the empty string to retain all scalar siblings.
    Example value
    id

Operator usage example

Connect the input ports to upstream steps and adjust the parameters for your data.

id: process
operator: piflow_flatten_xml_parser@1.0
inputs:
  source: read
params:
  tagPath: r,record
  openTag: items
  returnField: id

Manual download

curl -fLo 'operator.zip' 'https://repo.conox.cn/v1/blobs/sha256/d6540b0546db576740747c3d676f43207d6e5b21551a6d1a7b09a1d1372aa750/operator.zip'
sha256sum -- 'operator.zip'
curl -fLo 'LICENSE.txt' 'https://repo.conox.cn/v1/blobs/sha256/2a45ff20671144c1709be48b36f5e55d97145c767dae1cf91965cbd2cf625768/LICENSE.txt'
sha256sum -- 'LICENSE.txt'

Compare checksums with the manifest. Download execution and build environments from the runtime catalog ↗.

Source and licensing

See Source archive under Artifact details

Source repository
https://github.com/cas-bigdatalab/piflow
Source revision
6f254537683a4af28c2b89ca5f5ad51fb71153dd
License (publisher declared)
Apache-2.0
License text
Available below
Dependency SBOM
Dependency SBOM not provided

Build instructions

Build the Python SDK adapter in src/ with python-arrow@2.0. See job.yaml for an example using the supplied fixtures.

Publisher-provided source, licenses and dependency information support your review. Availability and checksums do not certify safety, legal clearance, or that the executable matches the source.