XML all records in same file
Posted: Wed Oct 10, 2007 11:46 am
Hi,
I have a requirement where I have to process xml file ,
and have job designed which works fine ,
folder stage --> xml input stage --> Seq file stage .
Previously I had seperate file for each record , I mean in one file I have just one patient report record ,
My job works fine ,
Now I have the xml file which has common header and repeating details of many patient in same file , but when I process this xml file through above job it gives me only one record in the seq file ,
Please suggest me ,do I have to change above job or set something in the job which will process one file but gives me all records at the op ,
New file :
<Header>
<D01_01>xx</D01_01>
<D01_03>xx</D01_03>
<D01_04>xx</D01_04>
<D01_07>xx</D01_07>
<Record>
<E01>
<E01_01>-15</E01_01>
<E01_02>-15</E01_02>
</E01>
<E22>
<E22_01>-15</E22_01>
<E22_02>-15</E22_02>
</E22>
</Record>
<Record>
<E01>
<E01_01>15</E01_01>
<E01_02>-15</E01_02>
</E01>
<E22>
<E22_01>-15</E22_01>
<E22_02>-15</E22_02>
</E22>
</Record>
This is example where many records share same header in one file ,
Earlier I had seperate file with header and and data for only one record,
for ex:
<Header>
<D01_01>xx</D01_01>
<D01_03>xx</D01_03>
<D01_04>xx</D01_04>
<D01_07>xx</D01_07>
<Record>
<E01>
<E01_01>-15</E01_01>
<E01_02>-15</E01_02>
</E01>
<E22>
<E22_01>-15</E22_01>
<E22_02>-15</E22_02>
</E22>
</Record>
Please suggest
I have a requirement where I have to process xml file ,
and have job designed which works fine ,
folder stage --> xml input stage --> Seq file stage .
Previously I had seperate file for each record , I mean in one file I have just one patient report record ,
My job works fine ,
Now I have the xml file which has common header and repeating details of many patient in same file , but when I process this xml file through above job it gives me only one record in the seq file ,
Please suggest me ,do I have to change above job or set something in the job which will process one file but gives me all records at the op ,
New file :
<Header>
<D01_01>xx</D01_01>
<D01_03>xx</D01_03>
<D01_04>xx</D01_04>
<D01_07>xx</D01_07>
<Record>
<E01>
<E01_01>-15</E01_01>
<E01_02>-15</E01_02>
</E01>
<E22>
<E22_01>-15</E22_01>
<E22_02>-15</E22_02>
</E22>
</Record>
<Record>
<E01>
<E01_01>15</E01_01>
<E01_02>-15</E01_02>
</E01>
<E22>
<E22_01>-15</E22_01>
<E22_02>-15</E22_02>
</E22>
</Record>
This is example where many records share same header in one file ,
Earlier I had seperate file with header and and data for only one record,
for ex:
<Header>
<D01_01>xx</D01_01>
<D01_03>xx</D01_03>
<D01_04>xx</D01_04>
<D01_07>xx</D01_07>
<Record>
<E01>
<E01_01>-15</E01_01>
<E01_02>-15</E01_02>
</E01>
<E22>
<E22_01>-15</E22_01>
<E22_02>-15</E22_02>
</E22>
</Record>
Please suggest