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.


Source Code:

Enjoy!  Victor Gaudioso

  1. Victor, that is just Awesome!

    Thanks a bunch!

    p.s — how about an example that serializes an image ???

    • Mike Greenway
    • February 26th, 2010

    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

  2. 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.

  3. 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

    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.

  1. February 16th, 2010
  2. February 17th, 2010
    Trackback from : uberVU – social comments
  3. February 17th, 2010

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: