I am getting below error, when passing the path which has space between the folder name.
"System.Argumen tException: Illegal characters in path"
I have declared the the path in the variable like below:
Dim sFilename As String = "C:\Test\Window s Service\Schedul e.xml"
or I have tried like this as well but same error I am getting.
Dim sSFilename As String = """C:\Test\Wind ows Service\Schedul e.xml"""
and passing this file name to the below code:
Expand|Select|Wrap|Line Numbers
- Dim docDataSet As New DataSet
- Dim docReader As New XmlDocument
- Dim xnl As XmlNodeList
- docReader.Load(sSchFileName)
- xnl = docReader.SelectNodes("//datetime[text()='" & sDayTime & "']/..")
Thanks
-John