Closed kkoteeswaran closed 7 years ago
Based on this example you can just say:
let person = {
"@":{
"type": "owner"
},
"firstName": "John",
"lastName": "Smith"
}
console.log(js2xmlparser.parse("person", person));
Excellent I had the same doubt! Thanks @dsych you are the man. I would close this issue
Thank you!
I would like to build a XML request that looks like this:
with attribute
type="owner"
in the root element. Is there a way to do that?