Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Feb 21, 2012 03:55 PM|LINK
I currently have the function below which I use for pulling data out of an XML file. I use this many times around the site.
The problem is, the XML document rarely changes, but the system has to load it all in every time it wants to use it.
Is there any way of creating a global XML document that is only read in once and just referenced with this function instead?
Dim oContent As New XmlDocument
Return oContent.SelectSingleNode("/xml/Contents/Content[attribute::title='" & sTitle.ToLower & "']").InnerText.Replace("<", "<").Replace(">", ">")
Catch ex As Exception
oContent = Nothing