• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Processing input xml in a talend job

#1 2009-05-19 09:51:11

Mektoub
New member
Registered: 2009-05-18
Posts: 3

Processing input xml in a talend job

Hi,

I want to have a talend job handle xml given as a parameter.
As I search through the documentation I found that we can pass data by context variable.
So I create a context variable of type String to store the xml string.

Now I want to process this xml string in my talend job but I can find a way with the available component.
To be clear, I want a component that can parse xml from a context variable.
Is this available ?

Thanks,
Manuel

Offline

#2 2009-05-19 10:17:13

shong
Talend team
Registered: 2007-08-29
Posts: 10291
Website

Re: Processing input xml in a talend job

Hello Manuel
I think the tExtractXMLField component can fit your request.

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-05-19 10:46:21

Mektoub
New member
Registered: 2009-05-18
Posts: 3

Re: Processing input xml in a talend job

I tried with the tExtractField but I end on an compilation error I don't really understand ....

I've attached my job as screenshots.

The last screen is in french so here is the translation of the errors:
- row1.variable_name can be resolved or is not a field
- row1.variable_value can be resolved or is not a field

Manuel


Uploaded Images

Offline

#4 2009-05-19 11:02:07

shong
Talend team
Registered: 2007-08-29
Posts: 10291
Website

Re: Processing input xml in a talend job

Hello
Add double quote on xpath query element.

Best regards

        shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2009-05-19 11:48:26

Mektoub
New member
Registered: 2009-05-18
Posts: 3

Re: Processing input xml in a talend job

Shame on me smile

Thanks for your help, it worked.
Manuel

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Processing input xml in a talend job

Board footer

Powered by FluxBB