M
Martin Honnen
Lupina wrote:
You need to use the method Load which loads from a file or URL and not
the method LoadXml which is supposed to load the XML from a string so try
myDoc.Load(Server.MapPath("cars.xml"));
I want load whole xml file, I try do it in the same way as I did it in
windows application.
try
{
XmlDocument myDoc = new XmlDocument();
myDoc.LoadXml(Server.MapPath("cars.xml"));
You need to use the method Load which loads from a file or URL and not
the method LoadXml which is supposed to load the XML from a string so try
myDoc.Load(Server.MapPath("cars.xml"));