Hi,
I have an input file which contain many start-of-element. Among all I found two element MorningstarCategory & MorningstarPrimaryBenchmark, just below of these both element i have their correcponding field 'NAME' & 'ID' (Even 'NAME & 'ID' is also one of the start-of element). how can I fetch the value from each 'ID' in XML parse COBOL, please guide me.
Input file - XML
~~~~~~~~
- <PackageBody>
- <MorningstarCategory>
<Name>Large Blend</Name>
<Id>$FOCA$LB$$</Id>
</MorningstarCategory>
- <MorningstarPrimaryBenchmark>
<Name>S&P 500 TR</Name>
<Id>XIUSA04G92</Id>
</MorningstarPrimaryBenchmark>
From the above input file, i want to fetch corresponding value of 'NAME' & 'ID'. Please guide me.