You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Keyur Dalal <ke...@nc.rr.com> on 2002/02/21 16:57:51 UTC

xerces DOM API: to NS or not to NS?

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