cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Data type from a XML file.

Former Member
0 Kudos

Hi Guys,

1. I like to create data type from a XML file structure, which contains the data structure ?

2. How to create custom node function in graphical mapping editor ?

Thanks

Sam

Accepted Solutions (0)

Answers (2)

Answers (2)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Sam,

1. I like to create data type from a XML file structure, which contains the data structure ?

ans) Please follow this link http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/

2. How to create custom node function in graphical mapping editor ?

ans) Mark has already mentioned the method s to create UDF. If you wanna write Node functions yourself then try going through this articke

http://wiki.sdn.sap.com/wiki/display/XI/UDFExecutionType-ContextandQueue.

If the page is not shown please add a dot (.) in the end of the above URL.

Regards

Anupam

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

1. I like to create data type from a XML file structure, which contains the data structure ?

XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.

2. How to create custom node function in graphical mapping editor ?

In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:

1. Single Values = String

2. Queue/Context (no return type) thus resultList is used.

Hope this helps,

Mark