Digicrafts component use 2 type of xml to driven any component which loading external images.
1. Custom XML
2. Photoshop XML
Custom XML
It is a custom type of xml which use widely in Digicrafts’scomponent. Here is the basic structure of the xml.
<items id = "items" relativepath="true"> <item path = "menu/icon_1.png" width = "128" height = "128" type = "bitmapfile"> <title>Item Title</title> <description>Item description</description> <link>link</link> <linktarget>link</linktarget> </item> <item path = "menu/icon_2.png" width = "128" height = "128" type = "bitmapfile"> <title>Item Title</title> <description>Item description</description> <link>link</link> </item> </items>
You can create this xml file will any text editor such as NotePad in window or TextEdit in Mac OS. It is recommeneded to save the xml as Unicode (UTF-8) format for supporting multi language.
Photoshop XML
It is a format, which design by Adobe which use for setting their own gallery. This can be generated by Photoshop or Bridge along with formatted images.
The basic format is show below.
<gallery base = "" background = "#FFFFFF" banner = "#F0F0F0" text = "#000000" link = "#0000FF" alink = "#FF0000" vlink = "#800080" date = "14/6/2008"> <sitename>Wedding Photo</sitename> <photographer></photographer> <contactinfo></contactinfo>  <email></email> <security><![CDATA[]]> </security> <banner font = "Arial" fontsize = "3" color = "#F0F0F0"> </banner> <thumbnail base ="thumbnails/" font = "Arial" fontsize = "4" color = "#F0F0F0" border = "0" rows = "3" col = "5"> </thumbnail> <large base ="images/" font = "Arial" fontsize = "3" color = "#F0F0F0" border = "0"> </large> <images id = "images"> <image path = "156_medium.jpg" width = "155" height = "201" thumbpath = "156_medium.jpg" thumbwidth = "61"thumbheight = "80"> <meta name="title">Ice Age</meta> <meta name = "window"><![CDATA[height=200,width=400,status=yes,toolbar=no,menubar=no,location=no]]></meta> </image> ….  </images>