I'm looking for an easy way to create a XML list of images stored in a folder ... how to do with BBEdit? eg. I have a folder containing several images and i want to create the XML file like this:

<?xml ... >

<image>
   <filename>example.jpg</filename>
   <caption></caption>
   <width>640</width>
   <height>480</height>
</image>

<image>
   <filename>example.jpg</filename>
   <caption></caption>
   <width>640</width>
   <height>480</height>
</image>



could it eventually be achieved with a grep-pattern that finds and replaces the attributes of an image-tag?
like a conversion from

<img src="example.jpg" alt="" width="640" height="480" />

to

<image>
   <filename>example.jpg</filename>
   <caption></caption>
   <width>640</width>
   <height>480</height>
</image>



any ideas?



Markus Brand

http://www.brxnd.de
[EMAIL PROTECTED]



Reply via email to