cancel
Showing results for 
Search instead for 
Did you mean: 

XML File -> Problem.with naming tags with XI standard functions

Former Member
0 Kudos

Hello,

simple (?) problem:

Receiver expects an XML file via file adapter.

(The source data comes from an RFC connect to XI.)

In the XML tags like these are expected (following W3C definitions):

A) </gdt:ValueGroup>

How to define a data type with a ":" in its name or to convert it to the required tag?

B) <gdt:ExtendedAttribute gdt:guid="4c102d6b077de7c1f0e27391e40bb80f" gdt:code="X01" >GR2 LI3</gdt:ExtendedAttribute>

This one is a real nice one. The part with "gtd:guid=" within the tag is variable. How to add such values into tag names?

Any ideas if this is possible with standard and how.

If this is the limit of XI I think we need an XSLT- or JAVA-maping program to generate the required file.

Thank you for any help!

Best regards

Dirk

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Dirk,

just one thing:

>>>>The part with "gtd:guid=" within the tag is variable.

this is ok as it's just an attribute

of the ExtendedAttribute tag's name

so it can be variable without any problems

(you can fill it in the mapping for example)

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

Hello Dirk,

Michal is absolutely correct!! All you need to do is add an attribute to ExtendedAttribute Element in your datatype and map the relevant values during message mapping.

Regards,

Naveen

Former Member
0 Kudos

Hi Michal,

thank you. This hint helped to move one step further.

Problem left is the ":".

With attribute it looks like this:

<tagname gtd = GUID >

"=" is set by the system. We need a ":" .

For this problem there is no solution?

Best regards

Dirk

stefan_grube
Active Contributor
0 Kudos

Hi Dirk,

You cannot create a data type as you need in the Integration Repository. Namespace prefixes are only possible at root level.

So you have to create the XSD with an external tool and upload it to the IR, or you choose XSLT or Java Mapping.

Regards

Stefan

Answers (0)