cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace in Header tag

Former Member
0 Kudos

Hi,

I have just migrated some mappings from XI 2.0 to XI 3.0. There are differents properties depending on the version. In 3.0 the XML have to have the namespace information for being properly mapped. In 2.0 it works just with the tag, without any namespace information.

For example in 3.0 you need:


<?xml version="1.0" encoding="UTF-8"?>

<ns0:SDA xmlns:ns0="http://www.sscc.com">
   <Field1></Field1>
   <Field2></Field2>
   <Field3></Field3>
 </ns0:SDA>

But in 2.0 it worked if you just have:


<?xml version="1.0" encoding="UTF-8"?>

<SDA>
   <Field1></Field1>
   <Field2></Field2>
   <Field3></Field3>
</SDA>

At the moment I can't use 3.0 adapters( I think that the namespace information is automatically put the namespace in the tag with 3.0 adapters), for configuration problems(I probably put another post because of that ).

It is curious that migrated mappings of 2.0 work in 3.0 without namespace information, but if you modify something in the mapping it gets the 3.0 properties and it doesn't work with simple tags.

I'm interested in ideas for solving this problem.

Regards

Gonzalo

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can remove it:

question:

12. I have a problem with namespaces in XI - Is there a way to remove them?

on the XI faq link below

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you Michal, it worked!!

MichalKrawczyk
Active Contributor
0 Kudos

no problem

glad it works

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi,

You could use XSLT Mappings, than you don't need a namespace.

Regards,

Robin