cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI/PO: How to Parse Raw XML String to XML Data Type

12-12-2023 9:34 AM
javier_alonso63 Participant
1081 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

I would like to implement a WS Scenario in SAP PI. The WS response is a string which contains a RAW XML, something like this:

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://test-xml.com/">
  <ITEM><ATTRIBUTE>TEST VALUE1</ATTRIBUTE></ITEM>
  <ITEM><ATTRIBUTE>TEST VALUE2</ATTRIBUTE></ITEM>
</string>

(The editor is replacing the raw opening and closing tags &LESS_THAN; with the symbol < representation)

I would need to parse the raw XML to a XML PI DataType, which would have an ITEM node (0..unbounded) with its attributes sub-nodes as well.

I have been researching about Java Mapping and XSLT Transformation, but I'm not sure which way to go.

0 Likes

Accepted Solutions (0)

Answers (0)