XElement.Load Method (String)
Loads an XElement from a file located in the applications' XAP package.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
- Type: System.String
A URI string that references the file to be loaded into a new XElement. This file is located in the application's XAP package. If you want to download a file from some other location, follow the steps described in How to: Load an XML file from an Arbitrary URI Location with LINQ to XML.
LINQ to XML's loading functionality is built upon XmlReader. Therefore, you might catch any exceptions that are thrown by the XmlReader.Create overload methods and the XmlReader methods that read and parse the document.
If you have to modify XmlReaderSettings, following these steps:
For code examples, see:
You can find more examples under Processing XML Data with LINQ to XML (Silverlight).
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.