@flatfile/plugin-xml-extractor
A plugin for parsing .xml files in Flatfile.
When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more
@flatfile/plugin-xml-extractor
The @flatfile/xml-extractor
plugin is designed to extract structured data from
XML files. It utilizes various libraries to parse XML files and retrieve the
structured data efficiently.
Event Type:
listener.on('file:created')
Supported file types:
.xml
Parameters
The separator to use when joining or flattening nested attributes.
The chunkSize
parameter allows you to specify the quantity of records to in
each chunk.
The parallel
parameter allows you to specify the number of chunks to process
in parallel.
The prefix to use when flattening attributes of XML tags.
A function that takes a row and returns a transformed row. This is useful for adjusting the data before it is loaded into Flatfile.
Usage
Listen for an XML file to be uploaded to Flatfile. The platform will then extract the file automatically. Once complete, the file will be ready for import in the Files area.
Additional Options
The extractor can accept additional properties. Props will be passed along to the Sheet.js parsing engine.