-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
I am going to send XML response from my node js api.
When I am sending data like following
res.set('Content-Type', 'text/xml');
let example5 = [
{
toys: [
{
_attr: {
decade: '80s',
locale: 'US'
}
},
{
toy: 'Transformers'
},
{
toy: [
{
_attr: {
knowing: 'half the battle'
}
},
'GI Joe'
]
},
{
toy: [
{
name: 'He-man'
},
{
'g:brand': 'He-man'
},
{
description: {
_cdata: '<strong>Master of the Universe!</strong>'
}
}
]
}
]
}
]
return res.send(xml(example5, true));
Metadata
Metadata
Assignees
Labels
No labels
