Multiple rows getting generated.....
Posted: Wed Jun 30, 2004 3:34 pm
Hi,
I have a situation where I am using XML Input stage to parse the XML file. I am reading the XML document through the folder stage and send the output of folder stage as input into the XML Input Stage. The output goes into the sequential stage. I get pipe dilimited flat file.
But I see quite a few rows in the flatfile against one row in the xml. I have tried taking recordcount, email, perms as a key (one by one in turns) but I never got one row in flat file against one row in xml. I always got few lines of data against one row of XML.
I think I am missing something minor in this. I have spend some time on this but couldn't figure it out. I will really appreciate if anyone can suggest a way to resolve this problem.
Below is my XML:(This is a two rows XML)
<?xml version="1.0" ?>
<batch recordCount="100" source="MAIL" creDate="2004-10-23">
<email transDate="2004-10-23" delv="Y">
<eaddr>xyz@xyz.net</eaddr>
<newaddr>xyz1@xyz.net</newaddr>
<btn>1112223333444</btn>
<busres>B</busres>
<tn>1112223333</tn>
<fname>xyz</fname>
<lname>asdd</lname>
<perms>
<ebill value="Y"/>
<econf value="Y"/>
</perms>
</email>
<email transDate="2004-10-24" delv="Y">
<eaddr>xyz@xyz.net</eaddr>
<tn>1112223333</tn>
</email>
</batch>
I have a situation where I am using XML Input stage to parse the XML file. I am reading the XML document through the folder stage and send the output of folder stage as input into the XML Input Stage. The output goes into the sequential stage. I get pipe dilimited flat file.
But I see quite a few rows in the flatfile against one row in the xml. I have tried taking recordcount, email, perms as a key (one by one in turns) but I never got one row in flat file against one row in xml. I always got few lines of data against one row of XML.
I think I am missing something minor in this. I have spend some time on this but couldn't figure it out. I will really appreciate if anyone can suggest a way to resolve this problem.
Below is my XML:(This is a two rows XML)
<?xml version="1.0" ?>
<batch recordCount="100" source="MAIL" creDate="2004-10-23">
<email transDate="2004-10-23" delv="Y">
<eaddr>xyz@xyz.net</eaddr>
<newaddr>xyz1@xyz.net</newaddr>
<btn>1112223333444</btn>
<busres>B</busres>
<tn>1112223333</tn>
<fname>xyz</fname>
<lname>asdd</lname>
<perms>
<ebill value="Y"/>
<econf value="Y"/>
</perms>
</email>
<email transDate="2004-10-24" delv="Y">
<eaddr>xyz@xyz.net</eaddr>
<tn>1112223333</tn>
</email>
</batch>