I'm trying to use the transformer to add more elements to my fault details like so :
<detail>
<ThisisANelement xmlns="mynamesapce">
<UpdateDate xmlns=""> myDate </UpdateDate>
</ThisisANelement>
</detail>

As can be seen the UpdateDate element's namespace is left empty. I want to be able to specify the child element's namespace. I also want to be able to just pass in some xml without having a xmlns tag added to it. ( I am going to get the xml from my DB and just populate the detail area with the xml with no changes needed. )

I can get the namespace for the top level element in through the addDetailElement but I'm not sure how to have the child elements include their namespaces like in the UpdateDate element I have above.

The code is like so :

SoapFaultDetail detail = soapFault.addFaultDetail();
SoapFaultDetailElement el = detail.addFaultDetailElement(new QName("mynamesapce","ThisisANelement"));
Source elSource = new StringSource("<UpdateDate> myDate </UpdateDate>");

........
....

transformer.transform(elSource, el.getResult());


Thanks for the help