Hi,
I am trying to parse a XML file and write it to a text file. I am not getting the correct output.
XML file used is:-
<?xml version="1.0" encoding="UTF-8"?>
<Fields>
<Col_1>7542></Col_1>
<Col_2>Success</Col_2>
</Fields>
The output that is received in the file is:-
"<Col_1>7542</Col_1>","<Col_2>Success</Col_2>"
The correct output should be:-
"7542","Success"
This was working correctly in datastage version 8.0 but recently we migrated to 8.5 where we are facing this issue. How can I solve this?
XML input stage issue
Moderators: chulett, rschirm, roy
XML input stage issue
Thanks,
Shreya V
Shreya V
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It looks like you want the quotes? ...but don't want the tag characters (left and right caret < and > ? ....
To remove the carets, open the xmlInput Stage, go to the output link and scroll to the Descriptions of the columns on that link...make sure that each of the entries ends with "text()" for the entries that are xml elements. It sounds as though each Description is only ending with a /. ...that means "give me the whole tag, including the carets".
Ernie
To remove the carets, open the xmlInput Stage, go to the output link and scroll to the Descriptions of the columns on that link...make sure that each of the entries ends with "text()" for the entries that are xml elements. It sounds as though each Description is only ending with a /. ...that means "give me the whole tag, including the carets".
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
