I need to create the following namespace aware XML document:
 
<D:propstat xmlns:D="DAV:">
  <D:prop xmlns:R="http://foo.bar/ns">
    <D:getcontentlanguage>enUS</D:getcontentlanguage>
    <R:lockedby>someuser</R:lockedby>
  </D:prop>
</D:propstat>
 
If I use the DOM API to generate element nodes and append
attributes, what advantages are there in using createElementNS
and createAttributeNS over createElement and createAttribute?
 
Regards,
 
Keyur

Reply via email to