XPathDocument problem

  • Thread starter Thread starter Chuck Bowling
  • Start date Start date
C

Chuck Bowling

this refers to the knowledgebase article:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;308343&FR=1

I can't get this sample to work...

It will compile but when the console window opens i get an exception:

An unhandled exception of type 'System.Xml.XmlException' occurred in
system.xml.dll

Additional information: System error.



The problem appears to be here

docNav = new XPathDocument(@"c:\books.xml");

(I don't have a clue what the @ symbol means) I've tried the code both with
and without the @, no go...


Anybody have an idea what's going on?
 
The @ indicates that the string should be read as a filename and directory
instead of a regular string.

@"c:\books.xml" == "c:\\books.xml"
 
I didn't exactly know but I guessed that... ty... :)


The @ indicates that the string should be read as a filename and directory
instead of a regular string.

@"c:\books.xml" == "c:\\books.xml"
 
Back
Top