I am trying to create the following nodetree element:
<v:custProps> <v:cp v:nameU="Cost"> </v:custProps>
from:
newCustprop = document.createElement("v:custProps"); newcp = document.createElement("v:cp"); newcp.setAttribute("v:nameU", "Cost"); newCustprop.appendChild(newcp);
However, document.createElement("v:custProps") generates <v:custprops> unlike <v:custprops> . Is there any way to avoid this parsing?
Change 1:
I am currently reading this this article on case sensitivity nodename. This is slightly irrelevant to my problem, although due to the fact that my code is not debugged with <![CDATA]]> , I would prefer not to use .innerHTML .
source share