Skip to content

XML File

Reads and writes data from a XML file.

Categories: helpers

Type: xmlFile/v1


Actions

Read from File

Name: read

Reads data from a XML file.

Properties

NameLabelTypeControl TypeDescriptionRequired
fileEntryFileFILE_ENTRYFILE_ENTRYThe object property which contains a reference to the XML file to read from.true
isArrayIs ArrayBOOLEAN
Options true, false
SELECTThe object input is array?null
pathPathSTRINGTEXTThe path where the array is e.g ‘data’. Leave blank to use the top level object.null
pageSizePage SizeINTEGERINTEGERThe amount of child elements to return in a page.null
pageNumberPage NumberINTEGERINTEGERThe page number to get.null

JSON Example

{
"label" : "Read from File",
"name" : "read",
"parameters" : {
"fileEntry" : {
"extension" : "",
"mimeType" : "",
"name" : "",
"url" : ""
},
"isArray" : false,
"path" : "",
"pageSize" : 1,
"pageNumber" : 1
},
"type" : "xmlFile/v1/read"
}

Write to File

Name: write

Writes the data to a XML file.

Properties

NameLabelTypeControl TypeDescriptionRequired
typeTypeSTRING
Options OBJECT, ARRAY
SELECTThe value type.null
sourceSourceOBJECT
Properties {}
OBJECT_BUILDERThe object to write to the file.true
sourceSourceARRAY
Items []
ARRAY_BUILDERThe aray to write to the file.true
filenameFilenameSTRINGTEXTFilename to set for binary data. By default, “file.xml” will be used.true

Output

Type: FILE_ENTRY

Properties

NameTypeControl Type
extensionSTRINGTEXT
mimeTypeSTRINGTEXT
nameSTRINGTEXT
urlSTRINGTEXT

JSON Example

{
"label" : "Write to File",
"name" : "write",
"parameters" : {
"type" : "",
"source" : [ ],
"filename" : ""
},
"type" : "xmlFile/v1/write"
}