description:'Name of the property which contains<br />the XML data to convert.',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
displayOptions:{
show:{
mode:[
'xmlToJson',
],
},
},
default:{},
options:[
{
displayName:'Attribute Key',
name:'attrkey',
type:'string',
default:'$',
description:'Prefix that is used to access the attributes.',
},
{
displayName:'Character Key',
name:'charkey',
type:'string',
default:'_',
description:'Prefix that is used to access the character content.',
},
{
displayName:'Explicit Array',
name:'explicitArray',
type:'boolean',
default:false,
description:'Always put child nodes in an array if true; otherwise an array is created only if there is more than one.',
},
{
displayName:'Explicit Root',
name:'explicitRoot',
type:'boolean',
default:true,
description:'Set this if you want to get the root node in the resulting object.',
},
{
displayName:'Ignore Attributes',
name:'ignoreAttrs',
type:'boolean',
default:false,
description:'Ignore all XML attributes and only create text nodes.',
},
{
displayName:'Merge Attributes',
name:'mergeAttrs',
type:'boolean',
default:true,
description:'Merge attributes and child elements as properties of the parent, instead of keying attributes off a child attribute object. This option is ignored if ignoreAttrs is true.',
},
{
displayName:'Normalize',
name:'normalize',
type:'boolean',
default:false,
description:'Trim whitespaces inside text nodes.',
},
{
displayName:'Normalize Tags',
name:'normalizeTags',
type:'boolean',
default:false,
description:'Normalize all tag names to lowercase.',
},
{
displayName:'Trim',
name:'trim',
type:'boolean',
default:false,
description:'Trim the whitespace at the beginning and end of text nodes.',