cancel
Showing results for 
Search instead for 
Did you mean: 

XML Output prefixes in XI

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

I'm having problems with prefixes:

The first problem:

How do I remove prefixes that does were not even declared in the xsd's?Take note that the xsd used did not have external dependencies (did not use the include or import schema command) because all its contents were encoded inside the xsd itself.

from

Message

ns0:Header

ns0:Content

to

Message

Header

Content

The second problem:

How do I add prefixes in the output of XI? Take note that the xsd used external dependencies.

from

Message

Header

Content

to

Message

sh:Header

sh:Content

Please help me on this one. Points will be awarded. Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member187563
Contributor
0 Kudos

hi,

you have to simply add one module in your communication channel

that is XMLAnonymizerBean

you can refer below for help:

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

hope it helps.

reward point 4 useful ans.

regards,

ujjwal kumar

Answers (1)

Answers (1)

GabrielSagaya
Active Contributor
0 Kudos

Hi,

First problem

***************

If you don't want to have the prefix ns0, in your external definition (xsd) add something like this:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:element name="Header">

....

instead of ns0

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:element name="Content">

-


instead of ns0

second problem

******************

please do viceversa

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:element name="ns0:Header">