How to get specific value from

Sep 12 2005 7:25 AM
Hi All,

I have an sample xml file:

<?xml version="1.0" encoding="UTF-8"?>
<ext>
<information>
<items>
<item>
<col_items>
<dsc>
<![CDATA[<P>Open <EM>Shared-Sketch.ipt</EM></P>
<P> <IMG src="MediaServer?id=00C90408000010C1" useMap=#exer_ShareSketch_ex2-02-GL>
</P>]]>
</dsc>
</col_items>
</item>

<item>
<col_items>
<dsc>
<![CDATA[<P>Open <EM>Shared-Sketch.ipt</EM></P>
<P> <IMG src="MediaServer?id=00C90408000010C2" useMap=#exer_ShareSketch_ex1-02-GL>
</P>]]>
</dsc>
</col_items>
</item>
</items>
</information>
<ext>

Now, How do i get only "id" values from "img" tag which present in CDATA.
Also can it be possible to use regex for getting attribute value of src & usemap
and save it to log file.

Thanks,
Shailesh