This answer briefly touched on this topic, but did not mention the problem I am having.
Take a look at this fiddle.
As you can see from the alert message, jQuery made a number of changes I was not expecting:
- collapsed the original
<node></node>
into a self-closing tag (<node />
) $('<SelfClosingNode />')
became<selfclosingnode xmlns="http://www.w3.org/1999/xhtml"></selfclosingnode>
, eg. made the tag name lower-case, added the xmlns attribute, and split it into opening and closing tags
I need to be able to insert EXACT xml, i.o.w. I don't want jQuery to mess with my mark-up structure!
Thanks in advance for the help...