Bad XML from external web service and would like to change the content

I am getting a bad XML(not valid) from external web service and I would like to change the content of the body in OSB proxy service to make it valid.
For example
<g:Information xsi:schemaLocation="http:// bad schema" xmlns:g="http://abc.com/t.xsd">
<test>Test Data</test>
</g:Information>
should become
<g:Information xmlns:g="http://abc.com/t.xsd">
<test>Test Data</test>
</g:Information>
Do you how can I do this?

I don't think it would be the best solution but you may try -
1. Conver the incoming XML to string using fn-bea:serialize() function
2. Replace the not-required content with a blank
3. Covert the string back to XML using fn-bea:inlinedXML
If you find any other solution, please let us know.
Regards,
Anuj

Similar Messages

Maybe you are looking for

  • Drag and Drop of cell content between 2 tables

    Hi Guys, Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another). Have extended the java tutorial class "Table

  • Mail app flag problem

    My problem is that the "Flagged" mailbox contains emails that are not flagged. Maybe there were earlier but not anymore. I already tried to flag and unflag them again and to rebuild index but it doesn't fixed the problem.

  • Can I save a transparent psd file as a JPEG keeping trancparency?

    I have an Image of a chair which it was extracted from its back ground in CS3 and I want to be able to save it as a Jpeg preserving transparency.Like an object. Thanks for your attention.

  • Lost Voice option with new update

    I lost the the option to enter text via voice when texting, emailing withe new 9.1.41.XT926/4.1 Jelly Bean updated today. I do not see the microphone icon in the keyboard anymore. Please helpo me restore. Thanks

  • Security connection provided by SAP XI for FTP

    Hi All, In many implementations Business requirement is to security connection provided by SAP XI for FTP and to third-party system. Could you pls let me know the steps which i need to take care/ or shall i use the same File adaptor for this or any s