New Silverlight Video Tutorial: How to import XML and turn it into native Silverlight Objects
In this video tutorial I show you how to:
1. Create a new Silverlight application and website
2. Create a new XML file
3. Read the XML file into the application
4. Create a Sigleton DataFactory
5. Deserialize the XML into Native Silverlight Objects.
Video: http://tinyurl.com/ya5f29r
Source Code: http://tinyurl.com/ybzj7pk
Enjoy! Victor Gaudioso
Victor, that is just Awesome!
Thanks a bunch!
p.s — how about an example that serializes an image ???
This tutorial is well done.
You kept it simple and to the point!
The topic is also very useful.
My wish list. show the very simplest way to query the xml file on the server to send back a string containing only the are “black” cars
How i can put the nume of a car or color… in a textbox, i dont know how to refer of a index xml fields. sry for my english. TNX.
You can do a For loop through all of the cars ex: for (int i=0; i<Cars.length; i++)
{
TextBox.Text = Cars[i].Color;
}
You can also set local Car variables and set them inside your For Loop
ex:
Cars car_0 = null;
inside your loop
car_[i] = Cars[i];
this will set car_1 to the first car, car 2 to the second Car in the loop, etc.
Get it?
Play with it and if you cannot get it, let me know and I will help you by making an exapmle and send it to you.