Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

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
Labels (3)
6 Replies
Anonymous
Not applicable

You can receive a xml-file and can transform this e.g. in a delimited file.
For example with
txslt
tfileinputxml
regards
_AnonymousUser
Specialist III
Specialist III
Author

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

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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?
Anonymous
Not applicable

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