Hi All,
I need to extract contents of CDATA section in XML using Javascript. The XML looks like this
Code:
<batsmen order="6">
<fullname>S.Gosy</fullname>
<shortname>S.Gosy</shortname>
<batsmanid>4343</batsmanid>
<runs>8</runs>
<balls>10</balls>
<fours>2</fours>
<sixes>0</sixes>
<minutes />
- <howout>
- <![CDATA[ c ]]>
</howout>
<bowler>Langy</bowler>
<fielder>Shamy</fielder>
</batsmen>
Am at my wits end trying to extract the value inside CDATA which is "c". There seem to be spaces before and after "c".
Please help.
Regards,
Shanker