Hi All,
I have some problem with serializing a DOM document using an empty
transformer.
I have a document which looks like this,

<ROOT>
        <asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml";>
                <asx:values>
                        <HEADER>
                                <BDOC_ID/>
                                <BDOC_TYPE/>
                        </HEADER>
                </asx:values>
        </asx:abap>
      <asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml";>
                <asx:values>
                        <QNAMES>
        
<SMO_SITEID>2FD6331A5029C64EB1F4ED2381D19497</SMO_SITEID>
                        </QNAMES>
                </asx:values>
        </asx:abap>
</ROOT>


On this I apply a stylesheet to get the following result,

<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
        <asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml";>
                <asx:values>
                        <HEADER>
                                .....
                        </HEADER>
                </asx:values>
        </asx:abap>
</ROOT>

Now I import the <asx:abap> node from this document into a new document and
try to serialize the same.If I use the XMLSerializer explicitly then
everything works fine but
on the other hand if I use a empty transformer object to serailize the
document then I get 
        <asx:abap>
                <asx:values>
                        .............
                </asx:values>
        </asx:abap>

        i,e to say that the namespace node is not copied.

I imagine this should be done , is this is a bug???


Regards,
Ankur

Reply via email to