DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7687>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7687

createElementNS

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2002-04-03 06:29 -------
The output you got is right, Ankur. I agree with Joe's comment on this. When you
use createElementNS or createAttributeNS, no namespace decl. attributes are
created. If you want them to appear, you have to create them explicitly, as
follows:

doc.createElementNS("foo","prefix:MyElement");
...
doc.createAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:prefix";);
...

see: http://www.w3.org/TR/DOM-Level-2-Core/core.html#Namespaces-Considerations
[[
Similarly, creating a node with a namespace prefix and namespace URI, or
changing the namespace prefix of a node, does not result in any addition,
removal, or modification of any special attributes for declaring the appropriate
XML namespaces. Namespace validation is not enforced; the DOM application is
responsible.
]]

For further clarification use [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to