U_Schema_ContentMapper
AI-generatedSummary
Map string inputs for header, line, and footer sections into structured objects based on a provided XML file schema defining fields and their positions.
Inputs
- Schema XML (required) — An XML string containing the FileSchema that defines the fields, their lengths, start indices, and data types for header, line, and footer parsing.
- Header Input — A string representing the header section content to be parsed according to the schema.
- Line Input (required) — A string where each line represents a record; these lines are parsed into objects based on the Line field definitions in the schema.
- Footer Input (required) — A string representing the footer section content to be parsed according to the schema.
Output shape
A single JSON object containing parsed 'header', 'lines' (array), and 'footer' objects keyed by the field names defined in the schema.
Parsing uses fixed-width field positions and lengths from the schema. Trimming and date format conversions are applied if specified. The node throws an error if required inputs are missing or the schema XML is invalid, unless 'continueOnFail' is enabled, in which case errors are returned within the output JSON.