You are not logged in.

#1 2008-09-05 11:51:27

zak
Guest

parse XML

Tags: [parser, 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

#2 2008-09-05 11:58:18

mareng
Member
11 posts

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

Offline

#3 2008-09-05 12:43:03

zak
Guest

Re: parse XML

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

thanks

#4 2009-12-17 14:27:11

Tahir Rauf
Guest

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

#5 2009-12-18 06:37:53

shong
Talend Team


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


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

#6 2014-02-17 19:56:24

Nicholas Nardishvili
Member
18 posts

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?

Offline

#7 2014-02-24 04:17:39

shong
Talend Team


Re: parse XML

Nicholas Nardishvili wrote:

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


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

Board footer