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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 12, 2012, 12:48 AM EDT
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: