Export (0) Print
Expand All

XElement.Load Method

Creates a new XElement from a file specified by a URI, from an TextReader, or from an XmlReader.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load(TextReader) Loads an XElement from a TextReader.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load(String) Loads an XElement from a file.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load(XmlReader) Loads an XElement from an XmlReader.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load(TextReader, LoadOptions) Loads an XElement from a TextReader, optionally preserving white space and retaining line information.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load(String, LoadOptions) Loads an XElement from a file, optionally preserving white space, setting the base URI, and retaining line information.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load(XmlReader, LoadOptions) Loads an XElement from an XmlReader, optionally preserving white space, setting the base URI, and retaining line information.
Top

You can use one of the overloads of this method to load an XElement from a file, a TextReader, or an XmlReader.

To create an XElement from a string that contains XML, use Parse.

Community Additions

ADD
Show:
© 2014 Microsoft