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");

A) Do we really needs to make the call "setAttribute(...)
B) If  we don't make that call then serialization with
org.apache.xml.serialize.XMLSerializer and JAXP Transformer doesn't add
the namespace attribute

C) If we add that setAttribute call, then  DOM3 ( DOMLSImplementaion)
DOMSerializer adds  two xmlns attributes.
        (ie) <soap:Enveope  xmlns:soap="soapEnvelope"
xmlns:soap="soapEnvelope' />

D) Assume if we go with DOM3 serialization and don't do
setAttribute(...), then how will you append a textNode which is a qName.
        (ie)   Element env = Document.createElementNS("wsrfnamepace",
"wsrf:GetResourceProperty");    
                 Qname myQName = new Qname("myNamespace", "myElement");
                 How to append the qName?

                I need the result as
                        <wsrf:GetResourceProperty  
                                xmlns:wsrf="wsrfnamespace",
xmlns:ns1="myNamespace">
                                ns1:myElement
                        </wsrf:GetResourceProperty>

        In this case, do we need to call setAttribute(..)

Regards,                                        
Haneef

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

Reply via email to