How to handle EMPTY XML file as Input
Posted: Tue Sep 24, 2013 5:04 am
Hi,
I have a requirement where XML file will be provided with full information (with all the tags) and this file may come as EMPTY file as well.
In case of Empty XML file only file header will be present and XML body part will not be present in file (even tags will not be there).
Could you please advise how to handle this kind of file (as EMPTY file may come any day) and I do not want to have a separate job.
So job should be able to handle both FULL and EMPTY (with only Header) XML file.
Thanks,
Rohit.
I have a requirement where XML file will be provided with full information (with all the tags) and this file may come as EMPTY file as well.
In case of Empty XML file only file header will be present and XML body part will not be present in file (even tags will not be there).
Could you please advise how to handle this kind of file (as EMPTY file may come any day) and I do not want to have a separate job.
So job should be able to handle both FULL and EMPTY (with only Header) XML file.
Thanks,
Rohit.