stream xml from file

This block is part of the files group and was last modified in core v10.4.28.

stream xml from file v10.4.28

In pins 5 + flow
  • flow
    flow
  • file required
    file
  • batch (100)
    number
  • delete
    condition

    If true: Will delete the file after the stream is complete

    Default false

  • element
    value

    Elements to stream

  • collect children
    array

    Keep given child elements as array

Out pins 3 + flow
  • done
    flow
  • success
    condition
  • error
    value
  • Iterator
    execute_function

Parses an XML file and runs the attached function once per batch of elements named like the element pin, passing pins batch (1-based) and items; each element becomes an object of its attributes and child elements (repeated children become arrays, mixed text lands in _). batch defaults to 100 and is clamped to 1-1000. success=false with error ELEMENT_EMPTY (empty element), FILE_EMPTY (no file), FUNCTION_EMPTY (no function wired) or FILE_DOES_NOT_EXIST. The remove and children pins are declared but not read by the Go executor: the file is never deleted.

A typical wiring for stream xml from file: a function trigger starts the flow; get file from assets feeds the file pin; the function out pin wires to an execute block.

Studio canvas example for the stream xml from file block: typical wiring for stream xml from file.

Version history

Introduced in v10.4.28.


Back to files Return to the main group to view all sub-groups Back to file Return to the group to view all blocks within this group