resolving file path within a function
<p>I have a function which works in the development environment but I need to change the path so it resolves properly at the host servers.</p>

<p>This code line;</p>

<pre><code>doc.Load("H:\Website_Sep2012\OtherDataFiles\dataXML.xml") 'this needs to be changed to the server path
</code></pre>

<p>within this function</p>

<pre><code>Public Shared Function GetList(ByVal nodestring As String) As List(Of String)
    Dim doc As New XmlDocument()

    'Load XML from the file into XmlDocument object
    doc.Load("H:\Website_Sep2012\OtherDataFiles\dataXML.xml") 'this needs to be changed to the server path
    Dim root As XmlNode = doc.DocumentElement

    'Select all nodes with the tag paramter indicated by the nodestring variable
    Dim nodeList As XmlNodeList = root.SelectNodes(nodestring)
    Return (From node As XmlNode In nodeList Select node.InnerText).ToList()
End Function
</code></pre>

<p>Replacing the string with <code>Server.MapPath("~/OtherDataFiles\dataXML.xml")</code> does not work as Server is not available in that scope. Any ideas how to resolve this path</p>
