my string Contains data in xml formatt
For example:
i want to extract values from this like
351
Computer-Wholesale & Manufacturers
i tried some code but it is not getting those values.it is showing just count,name.
Thanks in advance...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 12, 2012, 4:48 AM
1. Your XML string lacks a root element.
2. The XML string contains ampersands which need to be escaped.
Try this LINQ to XML code which deals with these problems: