Page 1 of 1

Unable to create a dummy xml file

Posted: Thu Apr 03, 2008 7:33 am
by MOHAMMAD.ISSAQ
I have a job that creates a xml file.It's working fine.
My requirement is if the input file is a zero byte then also xml template should be created without any data.


Please provide pointers to this....

Posted: Thu Apr 03, 2008 8:02 am
by chulett
Right now, what does get created when you have no input?

Posted: Thu Apr 03, 2008 9:04 pm
by eostic
What do you "want" it to do....create all empty elements and blank attributes?

You are probably going to need to change your design in such a way that you always get some type of "row" (and then fill that row with blanks)....otherwise end-of-data will signal the job to shut down, and probably nothing gets written.

Check the size of the file beforehand with another job...perhaps drive the job with a dummy file and do a multi-return lookup to get the data that is now your source...... there are many tricks you could use here, but ultimately, you will most easily manipulate the XMLStage with "some" type of real data row being sent into it.

Ernie

Posted: Thu Apr 03, 2008 9:15 pm
by ray.wurlod
:idea:
If you want to create a dummy file, then XML for Dummies is probably the best reference to consult!

:lol:

Posted: Mon Apr 07, 2008 11:16 pm
by MOHAMMAD.ISSAQ
Thanks Ernie for the help..

Now i got the ouput..