If you want to create a document with the correct namespaces, you must use createElementNS and createAttributeNS. Isn't that obvious from their names and the DOM recommendation?
Dave "Keyur Dalal" <[EMAIL PROTECTED] To: <[EMAIL PROTECTED]> > cc: (bcc: David N Bertoni/Cambridge/IBM) Subject: xerces DOM API: to NS or not to NS? 02/21/2002 07:57 AM Please respond to xerces-c-dev 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]