on 04-20-2012 11:31 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Beginners to understand the java mapping . These links would help ...
http://www.saptechnical.com/Tutorials/XI/Mapping/Index.htm
http://wiki.sdn.sap.com/wiki/display/XI/Parametrized+Java+Mapping+in+PI+7.1
Hi Kiran,
Look at this link
http://www.saptechnical.com/Tutorials/XI/XMLPayload/Index.htm
and provide parameter value as namespace,'xsi'.
Thanks
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.