{"api_version":2,"name":"piflow_xml_parser_generate_new_field","version":"1.0","role":"transform","type":"sdk","description":"Add a string column containing text from a plain XML element path.","icon":{"path":"M3 5h18v14H3zM3 10h18M9 5v14"},"inputs":{"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"decoderField":{"type":"string","description":"Name of the column containing an XML document."},"tagXPath":{"type":"string","description":"Slash-separated element path beginning at the root."},"newField":{"type":"string","description":"Name of the new string column. It must be absent from the input."}},"required":["decoderField","tagXPath","newField"],"additionalProperties":false},"documentation":{"inputs":{"source":"Arrow records. The example uses document, id."},"outputs":{"result":"Records stream. Add a string column containing text from a plain XML element path."},"parameters":{"decoderField":{"description":"Name of the column containing an XML document.","help":"Name of the column containing an XML document.","example":"document"},"tagXPath":{"description":"Slash-separated element path beginning at the root.","help":"Slash-separated element path beginning at the root.","example":"/root/value"},"newField":{"description":"Name of the new string column. It must be absent from the input.","help":"Name of the new string column. It must be absent from the input.","example":"value"}},"example_job":"name: Extract XML into a new record field\nsteps:\n- id: read\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/piflow/example.jsonl\n    view: records\n- id: process\n  operator: piflow_xml_parser_generate_new_field@1.0\n  inputs:\n    source: read\n  params:\n    decoderField: document\n    tagXPath: /root/value\n    newField: value\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_xml_parser_generate_new_field","config":{}},"source_public":true,"provenance":{"license":"Apache-2.0","source_repository":"https://github.com/cas-bigdatalab/piflow","source_revision":"f9bb5542e253fddea75a338a8dd476270f86ce59","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":"c2c216153a8a4d835d2faf8569de1f24544eb34de48d9f7594cb1548746ea1e6","size":13614,"filename":"piflow_xml_parser_generate_new_field-sources.zip"},"license_file":{"sha256":"c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4","size":11357,"filename":"LICENSE.txt"}},"artifact":{"sha256":"9853b2b628e04397088060f6dd0d8c3a249e112d969cd20859b2ea4b86025e0d","size":20422,"filename":"operator.zip"},"categories":["PiFlow","XML"],"trust":{"score":4,"assessed_by":"administrator","reviewed_at_ms":1795079734111},"publication":{"author":"dacp-examples","submitted_at_ms":1795079717892,"approved_at_ms":1795079734111,"last_submitted_at_ms":1795079717892,"last_approved_at_ms":1795079734111},"download_count":4}