This documentation is archived and is not being maintained.

XmlDataDocument.Load Method

Loads the XmlDataDocument using the specified data source and synchronizes the DataSet with the loaded data.

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 Load(Stream) Loads the XmlDataDocument from the specified stream. (Overrides XmlDocument.Load(Stream).)
Public method Load(TextReader) Loads the XmlDataDocument from the specified TextReader. (Overrides XmlDocument.Load(TextReader).)
Public method Load(String) Loads the XmlDataDocument using the specified URL. (Overrides XmlDocument.Load(String).)
Public method Load(XmlReader) Loads the XmlDataDocument from the specified XmlReader. (Overrides XmlDocument.Load(XmlReader).)
Top

NoteNote:

In order to view the XML data relationally, you must first specify a schema to use for data mapping. This can be done either by calling the ReadXmlSchema method or by creating the tables and columns within the DataSet manually. This step must be done before calling Load.

XmlDataDocument does not support creating entity references. If the data includes entity references, the Load method resolves and expands any entity references. However, if you are using the Load overload that takes a XmlReader as an argument, you must specify an XmlReader that can resolve entities.

Show: