QuantumMindsLogo
Back to top

Better Browsers:

NEXT PREVIOUS

Reading & Writing XML with Silverlight

November 13, 2011

A small project came up that needed to be done in Microsoft
Silverlight.
I'm not that familiar with Silverlight technology but after
reading up on it
for a bit, it wasn't hard to adapt at all.


The cool thing about Silverlight is that it can read and write
data asynchronously.
XML data can be read and even written to clients machine using
Silverlight.
Here is a screenshot of the simple program I have written.

It's simple, reads data from an XML file on the server, lists the
data
under Name/Value pair list in the order it is read. New data can
be added
to list and sorted by name or value. To achieve this, I wrote a
simple
bubble sort for the list of items. In the below picture, items
are sorted
by value:

Let's get to coding:



Below 2 are the important functions that read and parse the
XML data.


And this is all. This is how you can read and parse
XML data with Silverlight.
Then save the xml to your local machine. Enjoy!
Here is the full project source for download: Silverlight & XML



NEXT PREVIOUS


Add Comment:





COMMENTS


Anonymous user wrote on November 13, 2011:

This is what I was looking for, thank you very much!

anan wrote on November 13, 2011:

seni seviyor :)))

kaanie wrote on November 22, 2011:

No problem!