Avatar

Level 3

I am creating a dynamic form that reads in XML. Every once in a while I will get an image in jpg form that can be displayed. Sometimes I will get a video, which obviously cannot be displayed. Instead I would like to have a jpg on hand that I can put in place of the video to show the user that this is where a video would be.

The XML looks like this:

<<images>
<video fileName="49.flv" href="" />
</images>

- <images>
<<ImageField1 xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" fileName="50.jpg" href="" xfa:contentType="image/jpg">Image Data</ImageField1>
<<images>

So whenever I encounter the <video> tag, I want to be able to grab a jpg resource image of a videocamera to put in it's place. How do I do this? Thanks in advance.