XMLDataProvider to accept XML Data String instead

Nov 18, 2008 at 6:45 PM

Is it possible to update XMLDataProvider or create a new one to accept XML string instead of file Path. For example:

 

 

<object type="application/x-silverlight-2" data="data:application/x-silverlight-2," width="325" height="488">
            <param name="background" value="#fff" />
            <param name="source" value="../ClientBin/Vertigo.SlideShow.xap" />
            <param name="initParams" value="ConfigurationProvider=SimpleTheme,DataProvider=XmlDataProvider;XmlData=<data startalbumindex='1' transition='CrossFadeTransition'><album title='Animals' description='Photos of several animals (cross fade transition)' source='../Assets/Vertigo/a_29.jpg' transition='CrossFadeTransition'><slide title='Monterey Aquarium Exhibit — Jellies: Living Art' description='Photo taken by Alan Le' source='../Assets/Vertigo/s_07.jpg' thumbnail='../Assets/Vertigo/t_07.jpg' link='http://vertigo.com/'/><slide title='My Cat' description='Photo taken by Scott Stanfield' source='../Assets/Vertigo/s_10.jpg' thumbnail='../Assets/Vertigo/t_10.jpg' /><slide title='A Lizard (Really) from Sea Ranch California' description='Photo taken by Alex Arkhipov' source='../Assets/Vertigo/s_26.jpg' thumbnail='../Assets/Vertigo/t_26.jpg' /></album></data>" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /></a>
</object>

Thanks.

 

Dec 11, 2008 at 3:30 AM
What would be the purpose?