Hi I need to create xml from data in form to send it to webservice. The problem is that .append()
is case insensitive, so .append('<EDO />')
will create <edo>
. But xml is case sensitive, so is there a way how to solve this? And I've chosen to use domObject instead of string, because this way I don't have to write endtags, what would be very difficult in my scenario.
Try using $.parseXML() to create the XML element:
yourObject.append($.parseXML("<EDO />").documentElement);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With