Create Delimited String from XML Nodes and Vice Versa in SOA 12c by Pranav Davar
March 17, 2021 Leave a comment
A delimited string is a string representation of data separated by a delimiter(e.g. ","). A simple representation of the delimited string will look like.
Delimited String Examples
Sample-1– Delimiter as ","
Value1,Value2,Value3
Sample-2– Delimiter as "|"
Value1|Value2|Value3
If we want to represent the above set of delimited values in the form of an XML document under some root and parent tag. The representation will look like this.
XML Example
<root xmlns="http://test.com/sample/xml">
<Values>
<value>Value1</value>
<value>Value2</value>
<value>Value3</value>
</Values>
</root>
Sometimes we may need to convert values coming in delimited string to an xml document or vice versa. Since delimited string is similar to csv format. We can create a nxsd schema and then perform translate i.e. native to xml or xml to native within our SOA application. But in the scenarios wherein we just want to convert one delimited string to xml or recurring xml nodes to one delimited string, there we can make use of oracle xpath extension functions: Read the complete article here.
For regular information on Oracle PaaS become a member in the PaaS (Integration & Process) Partner Community please register here.
Blog
Twitter
LinkedIn
Facebook
Wiki
Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress