"Ali, Haneef" <[EMAIL PROTECTED]> wrote on 09/22/2005 05:13:26 PM:
> Hi,
>
> I have couple of doubts in dom?
>
> Consider the following code?
> a) Element env = Document.createElementNS("soapnamespace",
> "soap:Envelope");
> b) env.setAttribute("xmls:soap", 'soapnamespace");
^^^^^^^^^^^^^^^^
This might be your problem.
Element.setAttribute() creates a non-namespace-aware node. You should
never use the DOM Level 1 methods with a DOM containing namespace-aware
nodes. Note that setAttribute() is not equivalent to calling
setAttributeNS() with a null namespace URI and that you must specify
"http://www.w3.org/2000/xmlns/" as the namespace when creating xmlns
attributes using setAttributeNS().
<snip/>
>
> Regards,
> Haneef
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]