-
Notifications
You must be signed in to change notification settings - Fork 610
Open
Description
I have a need to encode a js array as xml. For an array like the following:
headers: [
{ header: { '$': { 'method': 'INVITE', name: ‘X-Mode', value: 'standard' } } },
{ header: { '$': { 'method': 'INVITE', name: ‘X-Prop', value: ‘default' } } }
]
I am getting this XML:
<headers>
<header method="INVITE" name="X-Mode" value=“standard"/>
</headers>
<headers>
<header method="INVITE" name=“X-Prop" value=“default"/>
</headers>
Instead of the expected:
<headers>
<header method="INVITE" name="X-Mode" value=“standard"/>
<header method="INVITE" name=“X-Prop" value=“default"/>
</headers>
I suspect I may just be missing something but can’t figure out what it is after reading through the README. Hoping somebody can advise how to make this work.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels