replace the character in xml tags

Hi All,

In my receiver structure, few field names are containing "__" underscore. for example

source xml

<gdp__india>45</gdp__inida>

output xml file should be

<gdp: inida>45</gdp:inida>

i want to replace all the __ characters with :

i don't want go java code because i have to install that NWDS or eclipse tool. with that again i need to check supported java version and all.. i am facing difficulty to get those details. my version is SAP PI 7.1

is it easy if we can go to xslt mapping instead of this? if yes. can you please provide me the procedure and if there is any standard code is there for the same?

Regards,

Janardhan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 31, 2016 at 10:08 AM

    Hi Janardhan!

    Yes, you can use XSLT for this.

    Using contains() and local-name() functions should help you.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 03, 2017 at 01:32 PM

    Hi Evgeniy,

    is there any standard code to achieve this through xlst mapping?

    Regards,

    Janardhan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 04, 2017 at 10:43 AM

    Hi,

    Create a file-to-file scenario and create required target node names. And do one to one mapping.

    Regards,

    Anoop Rai

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content