I am having issues with converting string to xml.string is in this format
String s = "<?xml version="1.0"?><Brands><Brand><BrandID>1</BrandID><BrandName>ABC</BrandName></Brand><Brand><BrandID>2</BrandID><BrandName>DEF</BrandName></Brand></Brands>";
the above string comes as webservice response.
The main problem is when i have string like this with <?xml version="1.0"?>
it gives error that "; expected" because of that xml header with "1.0". Rest of the code i have it figured out to convert to xml and all.it doesn't even compile so that i can go further.
XmlDocument doc = new XmlDocument();
doc.LoadXml(s);