X

PaaS Partner Community

Create Delimited String from XML Nodes and Vice Versa in SOA 12c by Pranav Davar

Juergen Kress
PaaS Partner Adoption
image

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.

PaaS Partner Community

For regular information on Oracle PaaS become a member in the PaaS (Integration & Process) Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.