Image in XML
XML / XSL
2
Posts
2
Posters
0
Views
1
Watching
-
Hi all I want to save my images in XML file and read my XML file and export images from it and show in the .aspx page. How can i save my images in XML file and how can i export these images and show them in .aspx page?
Well if you would save the url of the images in an xml file ...
<?xml version="1.0" encoding="utf-8" ?>
<root>
<img src="Myjpeg1.jpg" /><img src="Myjpeg2.jpg" />
</root>You could then add a repeater to aspx page and set it's data source to the xml file and then make the itemtemplate like this ...
<ItemTemplate>
<img src='<%# DataBinder.Eval(Container.DataItem, "src") %>'/> </ItemTemplate>