string xmlText= "
<Person>
<Name>abc</Name>
<Age>22</Age>
</person>";
i want the values abc and 22
m using silverlight 4 and XmlTextReader is not available.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can parse XML data in Silverlight by using either LINQ to XML or XmlReader.
Here’s some example code that uses XmlReader. It’s very simple and only works with the exact input string that you defined. But, it should be enough to get you on your way.
Here’s an article with more details:
http://msdn.microsoft.com/en-us/library/cc188996(VS.95).aspx