Hello xerces-c users, I would like to ask you for an advice.
I have this case, what I need to solve: After the XQuery transformation a obtained XML in such format: <ns0139:getCreditCardsResponse xmlns:ns0139="http://mw/services/CardService/v01"> <ns0139:limits> <ns0033:amount xmlns:ns0033="http://mw/CDM/v01/Products/Cards">40000</ns0033:amount> <ns0033:cycle xmlns:ns0033="http://mw/CDM/v01/Products/Cards">1</ns0033:cycle> </ns0139:limits> </ns0139:getCreditCardsResponse> The XML can have more and more elements and more and more namespaces. The problem is that I would like to output the XML after XQuery transformation with namespaces defined in the root tag only, not on remaining elements. So the desired output should be: <ns0139:getCreditCardsResponse xmlns:ns0139="http://mw/services/CardService/v01" xmlns:ns0033="http://mw/CDM/v01/Products/Cards"> <ns0139:limits> <ns0033:amount>40000</ns0033:amount> <ns0033:cycle>1</ns0033:cycle> </ns0139:limits> </ns0139:getCreditCardsResponse> Can somebody please post some idea how to do it in an elegant way ? For example which API classes / methods should I use for this ? Thank you, Jan
