How to load an xml file with XDocument.load RRS feed

  • Question

  • Hi,
    I would like to load xml file from a file with the following code:
    XDocument MyDocLoaded = XDocumentLoad(@"c:\folder1\Myfile.xml");

    But I have always an error during the load (No file found in XAP package).
    Do I need to put Myfile.xml somewhere? or to do something else?

    Thanks for your help

    Wednesday, November 25, 2009 9:55 PM

All replies

  • are you adding the xml file to your project?
    Tuesday, December 1, 2009 9:14 PM