I am retrieving an xml from a URL and then I need to make it accesible to different pages within my asp.net application.
I have come accross two potential ways of doing this. One is by storing the file in disk using xml.save.
The other is by storing the xml in a session variable.
The first option I have figured out how to do it. But I am not sure if that option is better than the second one. As for the second one, I have managed to store the xml in a session variable,
XmlDocument xmlDoc = new XmlDocument();
Session["xml"] = xmlDoc.InnerXml;
but cannot read it in the receiving page, because
xmlDoc.InnerXml = Session["xml"];
is giving error.
Thanks in advance for making this site a value added resource.