Closed khajaamin closed 5 years ago
I'm not sure I understand what you're asking. Can't you add the soap information to the object you're converting, or manually add it to the XML after converting?
Assuming attributes in the root element is what you're asking for, js2xmlparser already supports this:
> js2xmlparser.parse("root", {"@": {"abc": "def"}})
'<?xml version=\'1.0\'?>\n<root abc=\'def\'/>'
Using this lib I did generated xml
I wan to add