Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Need Help in XSLT Mapping: Remove Namespace & Prefix except one element

$
0
0

HI,

 

The source structure coming from a webservice contains xml namespace in all elements. I need to remove it from all elements except the top element. I can't use XML anonymizer bean for some reason. The structure is like:

 

<RecordNode xmlns="urn:xxyy:xyz">

   <Field1 xmlns="urn:xxyy:xyz"> 12000</Field1>

   <Field2 xmlns="urn:xxyy:xyz"> 900</Field2>

</RecordNode>

 

 

Thus I need to remove this section (xmlns="urn:xxyy:xyz">) from all fields i.e field1,field2,.....last field Except the top element i.e RecordNode. I could get XSLT mapping for removing all namespaces but how do I do it for the above case. Please note that after XSLT mapping, the field say field1 should look like:

<Field1>12000</Field1>

 

 

 

Regards,

Singh


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>