XML

Introduction

Extensible Markup Language (XML) is a format for the files that store data in a structure that is both machine-readable and human-readable.

Supported actions

For XML format, YAP ensures the following actions:
    Write files
    Read files

Write files

List of fields available for Write files action on XML connector:
Field
Type
FileName
String
Value
String
Content-type
String

Read files

List of fields available for Read files action on XML connector:
Field
Type
Value
String or Array

Setup requirements

Before setup, please check that you have granted to YAP the permission to send notification to your XML account. For this, sign in to XML and authorize the permissions requested by YAP.

Connection

Write XML file

YAP writes out correct delimited text strings given an array of arrays or an array of objects.
Fields
Name
Type
Required
Description
field
Object
Yes
Select field on data processing scoped.
variable
String
Yes
Variable for stored file.
fileName
String
Yes
Name of file name.
multiple
Boolean
No
If processing must generate several CSV files in field. Default parameter: false.
Data input
Example of data input injected in field:
Could not load image
Data output
Example of data stored in data processing pipeline:
Single csv file
Multiple csv files
1
// For one xml file processing
2
{
3
"#csv": {
4
"key": "1233774C-D28C-479D-9CE7-12E4F8A7361A9062708393434.csv",
5
"ETag": "\"c1ba1b0640a6f6489ae213a5e116\"",
6
"name": "Transactions-3last",
7
"urlTmp": "https://storage.youngapp.co/1233774C-D28C--9CE7-12E4F361A-2019062708393434.csv",
8
"fileName": "data.csv",
9
"extension": "csv",
10
"subDirectory": "0612900020312808"
11
}
12
}
Copied!
1
// For multiple csv file processing. the files is stored in array
2
{
3
"#csv": [{
4
"key": "1233774C-D28C-479D-9CE7-12E4F8A7361A-2019062708393434.csv",
5
"ETag": "\"c1ba1b0640a6f6489ae213a5e116\"",
6
"name": "Transactions-3last",
7
"urlTmp": "https://storage.youngapp.co/1233774C-D28C-479D-9CE7-12E4F361A-2019062708393434.csv",
8
"fileName": "data.csv",
9
"extension": "csv",
10
"subDirectory": "0612900020312808"
11
}]
12
}
Copied!

Read XML file

Delimited data can be parsed out of strings or files.
Data input
Name
Type
Required
Description
field
Object
Yes
Select field to read XML
variable
String
Yes
Variable for stored data
mode
Number
Yes
Type of structure data
Data output
Could not load image
Questions? We're always happy to help with any issues you might have! Send us an email to [email protected] or request the demo with our sales team.
Last modified 1yr ago