XML output problem
Posted: Thu Sep 18, 2008 4:03 am
Hi,
I have to convert a sequential file into a xml file. I am using Seq file -> XML output stage. The input seq file format is like:
"1231","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","24534264224"
"1235","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","98795733525"
"1232","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet1","GT644224445"
"1236","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","AE232354566
"1237","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","24526278776"
"1230","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","T4569673234"
"1232","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet1","HT653345244"
I want the output xml file to contain the securityid's of a particular ruleset
inside one RuleSet tag like below:
<RuleSetContainer ruleSetName="RuleSet">
<SecurityID type="ID">AE232354566</SecurityID>
<SecurityID type="ID">24534264224</SecurityID>
<SecurityID type="ID">24526278776</SecurityID>
<SecurityID type="ID">98795733525</SecurityID>
<SecurityID type="ID">T4569673234</SecurityID>
</RuleSetContainer>
<RuleSetContainer ruleSetName="RuleSet1">
<SecurityID type="ID">GT644224445</SecurityID>
<SecurityID type="ID">HT653345244</SecurityID>
</RuleSetContainer>
But i am getting separate RuleSet tag for each securityid's. Please help me solving the problem.
Thanks in advance.
I have to convert a sequential file into a xml file. I am using Seq file -> XML output stage. The input seq file format is like:
"1231","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","24534264224"
"1235","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","98795733525"
"1232","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet1","GT644224445"
"1236","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","AE232354566
"1237","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","24526278776"
"1230","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet","T4569673234"
"1232","19:30","2008-09-28","2008-09-28","NY","Free Flowing Text","RuleSet1","HT653345244"
I want the output xml file to contain the securityid's of a particular ruleset
inside one RuleSet tag like below:
<RuleSetContainer ruleSetName="RuleSet">
<SecurityID type="ID">AE232354566</SecurityID>
<SecurityID type="ID">24534264224</SecurityID>
<SecurityID type="ID">24526278776</SecurityID>
<SecurityID type="ID">98795733525</SecurityID>
<SecurityID type="ID">T4569673234</SecurityID>
</RuleSetContainer>
<RuleSetContainer ruleSetName="RuleSet1">
<SecurityID type="ID">GT644224445</SecurityID>
<SecurityID type="ID">HT653345244</SecurityID>
</RuleSetContainer>
But i am getting separate RuleSet tag for each securityid's. Please help me solving the problem.
Thanks in advance.