Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to split a row?

I am new to Talend.   Over a few steps i got a xml String below

<xml>
  <header>
    <qrysql>select vbillcode,billmaker,pk_supplier,creationtime,modifiedtime from po_order</qrysql>
    <errcode>ERR000</errcode>
    <msg>success</msg>
  </header>
  <content>
    <group>
      <creationtime>2016-03-22 13:35:46</creationtime>
      <pk_supplier>1001QW10000000004CT2</pk_supplier>
      <vbillcode>CD2016032200000001</vbillcode>
      <modifiedtime>2016-03-22 13:36:17</modifiedtime>
      <billmaker>1001QW1000000000017S</billmaker>
    </group>
    <group>
      <creationtime>2016-03-23 16:05:30</creationtime>
      <pk_supplier>1001QW10000000004CRS</pk_supplier>
      <vbillcode>CD2016032300000006</vbillcode>
      <modifiedtime>null</modifiedtime>
      <billmaker>1001QW1000000000BT8L</billmaker>
    </group>
    .
    .
    .
  </content>
</xml>

My case is to split this string and put each content of <group> tag into a queue of redis.

 

But i don't how to do that with Talend job components. 

Any help is appreciated.

 

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Max,

 

In attachment of this reply: two images that illustrates how to do it.

I did the splitting part by using tExtractXMLField. 

 

How your XML will be deliverd, no idea, so I used a tFixedFlowInput component. At the moment Talend has no build in Redis components...

 

Hope it helps! If you have any questions, just let me know.

 

Kr,

Jvl70683p000009M7IN.png0683p000009M7IS.png

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Max,

 

In attachment of this reply: two images that illustrates how to do it.

I did the splitting part by using tExtractXMLField. 

 

How your XML will be deliverd, no idea, so I used a tFixedFlowInput component. At the moment Talend has no build in Redis components...

 

Hope it helps! If you have any questions, just let me know.

 

Kr,

Jvl70683p000009M7IN.png0683p000009M7IS.png