Help - how to create element with proper namespace 2003-03-05 - By Joseph Kesselman
> <requestSummary xmlns="urn:expertmgmt">
Element root = doc.createElementNS("urn:epertmgmt","requestSummary");
******DO*****NOT****** continue to use createElement() or createAttribute(). These really are incompatable with namespace-aware DOM processing.
We would have deprecated them, except that (a) W3C doesn't have a deprecation mechanism and (b) there is an (extremely limited) legitimate use for them: running ancient non-namespace-aware DOM Level 1 code against a Level 2 or later implementation of the DOM.
______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "may'ron DaroQbe'chugh vaj bIrIQbej" ("Put down the squeezebox and nobody gets hurt.")
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|