Here's some c# code
string webPageStr = @"<html><body><div id=""content"">good content</div><div id=""badcontent"">bad content</div></body></html>";
XmlDocument webPage = new XmlDocument();
webPage.LoadXml(webPageStr);
XmlElement divElement = webPage.GetElementById("content");
and divElement is equal null and i don't know why
I have also tried declare webPageStr like that
string webPage = @"<html><body><div id="content">good content</div><div id="badcontent">bad content</div></body></html>";
but XmlDocument throws en exception System.Xml.XmlException: "&" bad token
Whats wrong with this code?