parse XML

One Star

parse XML

Hi,
i would like to create a job which
- receives xml in String as input
- parses it
- sends attributes and values of tags by mail
example of xml:
<?xml version="1.0" encoding="UTF-8"?>
<objet Nom="createUser">
<Attribut Nom="Nom">gha</Attribut>
<Attribut Nom="Prenom">zak</Attribut>
</objet>
1- can i do these thinks in Talend ?
2- which component can i use to parse xml ?
thanks
One Star

Re: parse XML

You can receive a xml-file and can transform this e.g. in a delimited file.
For example with
txslt
tfileinputxml
regards
One Star

Re: parse XML

i want to receive xml-stream not xml-file.
it is possible, can you provide me example ?
thanks
One Star

Re: parse XML

Did you find any way around for this,, please help us, We are in the same situation, where we want the xml in a string variable to be parsed.
Any help will be greatly appreciated, Thanks in anticipation.
Regards,
Tahir Rauf
Community Manager

Re: parse XML

Hello Tahir Rauf
where we want the xml in a string variable to be parsed.

You can use tWritedXMLField component to generate a xml string.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

Re: parse XML

Was there any solution to this? How to pass a stream or a document type to txslt component versus have txslt read from the file system?
Community Manager

Re: parse XML

Was there any solution to this? How to pass a stream or a document type to txslt component versus have txslt read from the file system?

Most of the file input components such as tFileInputXML allow to read a file from a stream, but tXslt do not support a steam or a document type as the file path now, you can report a new feature in our bugtracker.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog