Parsing a bmml file
<p>Ive been working on this for a few days and I cant figure it out. I'm new to XML and parsing but I was able to retrieve bmml data from a website and i want to be able to extract an image file name from the bmml file. I tried using XPath but it dosen't seem to work. </p>

<pre><code>bmml:bmml xmlns="http://www.X.com/2002/bmml" xmlns:bmml="http://www.X.com/2002/bmml" xmlns:cg="http://www.X.com/2002/cg" xmlns:ctrl="http://www.X.com/2002/control" xmlns:geo="http://www.X.com/2002/geometry" xmlns:res="http://www.X.com/2002/resource" xmlns:lyr="http://www.X.com/2002/lyric" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
- &lt;bmml:context name="ctx1"&gt;
- &lt;bmml:devices&gt;
  &lt;bmml:device xsi:type="cg:character-generator" name="dev1" /&gt; 
  &lt;/bmml:devices&gt;
- &lt;bmml:resources resourceCount="100" totalCount="492"&gt;
- &lt;bmml:resource name="image0" moniker="ABC Australia Logo" context="NEWSRED" uuid="FD076559-97F1-4B7A-BD99-864E0A99A7D6" xsi:type="res:image" format="tga" width="0" height="0"&gt;
  &lt;bmml:title&gt;ABC Australia Logo.tga&lt;/bmml:title&gt; 
  &lt;bmml:description /&gt; 
  &lt;bmml:keywords /&gt; 
  &lt;bmml:asset-class&gt;4&lt;/bmml:asset-class&gt; 
  &lt;bmml:author&gt;/X&lt;/bmml:author&gt; 
  &lt;bmml:version /&gt; 
  &lt;bmml:subject /&gt; 
  &lt;bmml:filename&gt;..\ABC Australia Logo.tga&lt;/bmml:filename&gt; 
  &lt;bmml:filesize&gt;8294418&lt;/bmml:filesize&gt; 
  &lt;bmml:url&gt;NEWSRED/images/FD076559-97F1-4B7A-BD99-864E0A99A7D6.tga&lt;/bmml:url&gt; 
  &lt;bmml:alpha&gt;true&lt;/bmml:alpha&gt; 
  &lt;bmml:created&gt;1274893542000&lt;/bmml:created&gt; 
  &lt;bmml:modified&gt;1274893542000&lt;/bmml:modified&gt; 
  &lt;bmml:accessed&gt;1277933686000&lt;/bmml:accessed&gt; 
- &lt;bmml:proxy name="proxy0" class="thumbnail" xsi:type="res:image" height="0" width="0"&gt;
  **&lt;bmml:url&gt;NEWSRED/images/FD076559-97F1-4B7A-BD99-864E0A99A7D6/thumbnail.jpg&lt;/bmml:url&gt;** 
  &lt;/bmml:proxy&gt;
- &lt;bmml:proxy name="proxy1" class="asset" xsi:type="res:image" height="0" width="0"&gt;
  &lt;bmml:url&gt;NEWSRED/images/FD076559-97F1-4B7A-BD99-864E0A99A7D6/asset.jpg&lt;/bmml:url&gt; 
  &lt;/bmml:proxy&gt;
  &lt;/bmml:resource&gt;
</code></pre>
