Export XML File — Reference
Write a flat collection as repeated XML elements in a server file.
Write a flat collection as repeated XML elements in a server file.
Before you begin
Section titled “Before you begin”- A Server Connect action and a disposable server file or known test collection.
Export XML File
Section titled “Export XML File”Write a flat collection as repeated XML elements in a server file.
Settings
Section titled “Settings”| Setting | Meaning |
|---|---|
| Name | Names the returned saved-file path. |
| Path | The complete application-relative destination filename. The parent directory must be available and writable. |
| Export Data | A non-empty array of flat records. Each field becomes a child element of one item. |
| Root Name | The outer XML element name. Default export. Use a valid XML name. |
| Item Name | The element name for each record. Default item. |
| Overwrite | Allows replacing the destination. With it off, Node.js fails for an existing exact path while PHP can choose a unique name. |
| Output | Returns the saved-file path in the action response when enabled. It does not download the file automatically. |
Worked example
Section titled “Worked example”Export [{“id”:1,“name”:“Notebook”}] with Root Name products and Item Name product. Parse the saved file and confirm a products root containing one product with id and name children.
Format and runtime limits
Section titled “Format and runtime limits”This is a simple flat exporter, not a general nested XML serializer. Property names are used as element names and values are placed in CDATA; validate element names and content, including CDATA terminators, before relying on arbitrary input. Inspect the generated XML with the intended consumer.
Validate before the next operation
Section titled “Validate before the next operation”Keep file parsing, data validation, database writes and file downloads explicit. A successful import/export step alone does not perform the rest of that workflow.
Check your result
Section titled “Check your result”You can prepare the required file/data shape, configure the operation and inspect its returned file or records.