Page 1 of 1

Xml tag instead of empty value

Posted: Fri Jan 20, 2006 9:19 am
by malin666
Hi,
I am reading xml file

Folder --> XML Input --> Transformer --> Sequential File

At the end for fields (which are empty in source xml file) in targert txt file I am getting xml tag (for instance <firstName/>) instead of empty value.

Any idea how to get rid of such feature?

Regards
Marcin

Posted: Fri Jan 20, 2006 9:24 am
by kumar_s
Hi,

Since you are using Transformer stage next to XML INPUT, i guess you would be in the positon to eliminate this.

Try this post. It might help you.

-Kumar

Posted: Fri Jan 20, 2006 9:34 am
by malin666
kumar_s wrote:Hi,

Since you are using Transformer stage next to XML INPUT, i guess you would be in the positon to eliminate this.

Try this post. It might help you.

-Kumar
I don't think that it is the best solution to use basic function for each tag.

The problems is:
- I have well formed source xml
- some of the tags are empty and represented as <tag/> for example <firstName/>
- in target file after transformation, instead of having empty values I have the tag itself..

Thanks
Marcin

Posted: Fri Jan 20, 2006 10:26 am
by shawn_ramsey
Sounds like a bug to me. Have you contacted support?

Posted: Fri Jan 20, 2006 11:02 am
by chulett
:? Can't you use one of the Transformation Settings on the Output tab to 'Replace empty values with NULLs'? Seem to recall something like that in the stage...

Posted: Mon Jan 23, 2006 3:47 am
by malin666
chulett wrote::? Can't you use one of the Transformation Settings on the Output tab to 'Replace empty values with NULLs'? Seem to recall something like that in the stage...
I've tried it before. It doesn't help...

Posted: Mon Jan 23, 2006 3:53 am
by MaheshKumar Sugunaraj
Could pls check the Meta data of the XML, I had the same problem, so I actually re-imported using the XML Metadata importer and it worked fine.

With Regards
M

Posted: Mon Jan 23, 2006 6:29 am
by malin666
MaheshKumar Sugunaraj wrote:Could pls check the Meta data of the XML, I had the same problem, so I actually re-imported using the XML Metadata importer and it worked fine.

With Regards
M
Problem with import indeed. Needed to mark those fields as a text.
Thanks for help

Posted: Tue Jan 24, 2006 10:39 am
by diamondabhi
Malin666,
Check your column descriptions, do you have /text() at the end of the column description.

Abhi.