cancel
Showing results for 
Search instead for 
Did you mean: 

Adding namespaces to XML

Former Member
0 Kudos

Hi all,

When I generate a XML message via a mapping and using the Anonymizer Module i can create the following:

<os:envelope xmlns:os="http://www.name.org">

Standard SAP is using the prefix ns0 instead of the prefix os. The Anonymizer Bean is able to change this prefix.

Now I would like to add some additional namespaces. the result should look like this:

os:envelope xmlns:os="http://www.name.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.name.org http://www.system.name.org/schemas/valid/docuemnt.xsd">;

How can I establish this?

Best regards and Thanks

Ron

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

This is not possible with the graphical mapping tool, as the XI interfaces have only one namespace.

You can do this with Java Mapping or XSLT mapping as seperate step after the standard mapping.

Regards

Stefan