Given an XML stream as below, is there any possibility to convert the same
into any treditional class style with . (dots) as seperator of the nodes of
the xml file...
for instance
bank.code.tostr ing() should reslut me "5070" and
bank.descriptio n.tostring() should result "ICICI - Bangalore"
bank.location.d estination.code should result "MB"
bank.location.z one.code.tostri ng() should result "12" etc .,
And the XML file being ...
<?xml version="1.0" encoding="utf-8" ?>
<MainBank>
<bank>
<code>5070</code>
<description>IC ICI - Bangalore</description>
<contactPerson> Peter Loke</contactPerson>
<location>
<destination>
<code>MB</code>
<description>Ma in Branch at Mayohall</description>
</destination>
<zone>
<code>12</code>
<description>Ad min building and
8to8Branch</description>
</zone>
</location>
<catagory>
<code>1LL</code>
<description>Ad min with ExchRout plus Hub</description>
</catagory>
<exchContact>E8 39IRU</exchContact>
<isTT>true</isTT>
<classification >F98X</classification>
<branchDets>
<code>8525</code>
<description>Ad ministration Branch from 3rd_u70 ?loor
Onwards</description>
<floors>3,4</floors>
<type>FA</type>
<description>
<detail>Fully Automated</detail>
<ATM>True</ATM>
<eTT>False</eTT>
</description>
<offices>
<offtype>
<code>SA</code>
<description>Sy stem Admin</description>
</offtype>
<currency>INR </currency>
<frCur>false</frCur>
</offices>
</branchDets>
</bank>
<bank>
<code>5071</code>
<description>IC ICI - Mumbai</description>
<contactPerson> Jane Edwards</contactPerson>
<location>
<destination>
<code>MB</code>
<description>Ma in Branch at VT</description>
</destination>
<zone>
<code>12</code>
<description>Ad min building and
8to8Branch</description>
</zone>
</location>
<catagory>
<code>1LL</code>
<description>Ad min with ExchRout plus Hub</description>
</catagory>
<exchContact>E8 39IRU</exchContact>
<isTT>true</isTT>
<classification >F98X</classification>
<branchDets>
<code>8525</code>
<description>Ad ministration Branch from 3rd_u70 ?loor
Onwards</description>
<floors>3,4,5,6 </floors>
<type>FA</type>
<description>
<detail>Fully Automated</detail>
<ATM>True</ATM>
<eTT>False</eTT>
</description>
<offices>
<offtype>
<code>SA</code>
<description>Sy stem Admin</description>
</offtype>
<currency>INR </currency>
<currency>USD </currency>
<frCur>True</frCur>
</offices></branchDets></bank></MainBank>
--
Every thing is perfect, as long as you share!!!