cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Dynamic XML

Former Member
0 Kudos

Is it posible to generate a dynamic XML with XI.

The idea is to build a interface RFC to HTTP, where the output has to be a dynamic XML, I mean, we need to build the XML.

For this case, he RFC is going to have the information of the data, and the type of data (TABLA; STRUCTURE, etc)

If anyone have some information about this, please let me know.

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi ,

We can build Dynamic XML,use regex and write java code we can build,but using regex extensivly is not a best advice.

Regards,

Raj

Answers (3)

Answers (3)

Former Member
0 Kudos

/bump

The original message started four months ago, and obviously never got answered.

I'm facing the same challenge atm .. anyone with brilliant ideas ?

Input = fixed data

output = xml format, fully based on the content of the input - eg. field-content determines the xml-tags as well as the values of the tags.

Platform : SAP PI 7.1

Edited by: SAP Consultant on Nov 24, 2009 3:30 PM

Edited by: SAP Consultant on Nov 24, 2009 3:31 PM

Edited by: SAP Consultant on Nov 24, 2009 3:31 PM

Former Member
0 Kudos

Hi

What's your target?

You must have some sort of generic/static message format within which you wish to capture your dynamic XML right?

Otherwise how do you plan on configuring the collaboration agreement (based on which message interface)

jan_krohn
Active Participant
0 Kudos

Yes, that's easily possible with xslt. just put the parameter into {} (e.g. {$param}), and the elements itself (not the contents) will be dynamic.

Regards,

Jan

Former Member
0 Kudos

The problem is I don't know how to map this. For XLST map, we need to know the output xml.

Anybody knows how to do that?

Former Member
0 Kudos

Hi Oscar.

You can try to use XSLT , if you need the XML oputput has to be dynamic.