/scripts/ahub.form.attachments.js
0

replace the character in xml tags

Dec 30, 2016 at 12:20 PM

58

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Evgeniy Kolmakov Dec 31, 2016 at 10:08 AM
0

Hi Janardhan!

Yes, you can use XSLT for this.

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

Regards, Evgeniy.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Evgeniy,

I am new to this XSLT mapping, can you please provide if there is any standard code or please guide me to achieve this requirement.

Regards,

Janardhan

0
janardhan reddy Jan 03, 2017 at 01:32 PM
0

Hi Evgeniy,

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

Regards,

Janardhan

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jan 04, 2017 at 10:43 AM
0

Hi,

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

Regards,

Anoop Rai

Share
10 |10000 characters needed characters left characters exceeded
Skip to Content