cancel
Showing results for 
Search instead for 
Did you mean: 

adding xsi: in the namespace

Former Member
0 Kudos

Hi,

I am getting my target name space as

<PriorityDef xmlns="http://www.w3.org/2001/XMLSchema" noNamespaceSchemaLocation="PriorDefinition_v1.0.xsd">

Now i need to change it as

<PriorityDef xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="PriorDefinition_v1.0.xsd">

i added this namespace http://www.w3.org/2001/XMLSchema by changing the xsd and noNamespaceSchemaLocation as an attribute.

Can anyone help me on how to add xsi: as mentioned in the above?

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You need to use Java Mapping/XSLT mapping as the final mapping step in your operation mapping if you want to add the xsi prefix. As far as I know, you can only remove namespaces or its prefixes using that Bean, hence the name XML Anonymizer Bean.

http://help.sap.com/saphelp_nwpi711/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm

Hope this helps,

Mark

iaki_vila
Active Contributor
0 Kudos

Hi kiran,

You could take the Mark Angelo's solution and to create an XSLT mapping and to create the tags directly with the namespace prefix. In this thread you will find some links to interesting places http://scn.sap.com/message/5677972#5677972 in order to help you in your mapping.

Regards

Former Member
0 Kudos

hi mark,

Just one qstn?

Last step of opertn mapping in the sense. I should add it after the graphical mapping?

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You can specify many mappings as sequence in the operation mapping, right?  So you can specify java mapping as the last. That means after the graphical mapping in your case.

Former Member
0 Kudos

Any idea of where i can get any such sample code?

baskar_gopalakrishnan2
Active Contributor

Answers (1)

Answers (1)

santosh_k3
Active Participant
0 Kudos

Hi Kiran,

Look at this link

http://www.saptechnical.com/Tutorials/XI/XMLPayload/Index.htm

and provide parameter value as  namespace,'xsi'.

Thanks

Sai

Former Member
0 Kudos

hi i added this..

It was a partial success

But now my payload turned out to be

<xsi:PriorityDef xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="PriorDefinition_v1.0.xsd">

Can we remove xsi: being added to the root element also?