{"api_version":2,"name":"piflow_flatten_xml_parser","version":"1.0","role":"transform","type":"sdk","description":"Flatten a selected XML parent and optionally emit one row per child of a nested collection.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"source":{"representations":["bytes"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"tagPath":{"type":"string","description":"Comma-separated path from the root to a single parent element."},"openTag":{"type":"string","description":"Name of the direct child containing repeated items. Use the empty string to skip expansion."},"returnField":{"type":"string","description":"Comma-separated parent fields to keep. Use the empty string to retain all scalar siblings."}},"required":["tagPath","openTag","returnField"],"additionalProperties":false},"documentation":{"inputs":{"source":"One XML document supplied as bytes."},"outputs":{"result":"Records stream. Flatten a selected XML parent and optionally emit one row per child of a nested collection."},"parameters":{"tagPath":{"description":"Comma-separated path from the root to a single parent element.","help":"Comma-separated path from the root to a single parent element.","example":"r,record"},"openTag":{"description":"Name of the direct child containing repeated items. Use the empty string to skip expansion.","help":"Name of the direct child containing repeated items. Use the empty string to skip expansion.","example":"items"},"returnField":{"description":"Comma-separated parent fields to keep. Use the empty string to retain all scalar siblings.","help":"Comma-separated parent fields to keep. Use the empty string to retain all scalar siblings.","example":"id"}},"example_job":"name: Flatten XML child collection\nsteps:\n- id: read\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/piflow/example.xml\n    view: bytes\n- id: process\n  operator: piflow_flatten_xml_parser@1.0\n  inputs:\n    source: read\n  params:\n    tagPath: r,record\n    openTag: items\n    returnField: id\n- id: receive\n  operator: client_sink@1.0\n  inputs:\n    result: process\n"},"runtime":{"image":"sha256:40db7fee594f1452790d1cc99c2e5429e187eb64633c716b8c6f903c47576975","archive":{"sha256":"e1844833e35390f2eaf9fc9ec7b67057ad0305ad713c0da6c8b055980a66946c","size":73825792,"filename":"python-arrow-2.0-runtime.tar"}},"execution":{"executor":"python","entrypoint":"xstream_piflow_flatten_xml_parser","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"6f254537683a4af28c2b89ca5f5ad51fb71153dd","build_instructions":"Build the Python SDK adapter in src/ with python-arrow@2.0. See job.yaml for an example using the supplied fixtures.","source_archive":{"sha256":"5ad44d1638fcc3356a64560152c70809371d8d98a02d4742989a711f086c4392","size":11336,"filename":"piflow_flatten_xml_parser-sources.zip"},"license_file":{"sha256":"2a45ff20671144c1709be48b36f5e55d97145c767dae1cf91965cbd2cf625768","size":1317,"filename":"LICENSE.txt"}},"artifact":{"sha256":"d6540b0546db576740747c3d676f43207d6e5b21551a6d1a7b09a1d1372aa750","size":20388,"filename":"operator.zip"},"categories":["PiFlow","XML"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795079739912},"publication":{"author":"dacp-examples","submitted_at_ms":1795079718014,"approved_at_ms":1795079739912,"last_submitted_at_ms":1795079718014,"last_approved_at_ms":1795079739912},"download_count":4}