This documentation is archived and is not being maintained.

XmlDataDocument.Load Method (Stream)

Loads the XmlDataDocument from the specified stream.

Namespace:  System.Xml
Assembly:  System.Data (in System.Data.dll)

public override void Load(
	Stream inStream


Type: System.IO.Stream

The stream containing the XML document to load.

XmlDataDocument does not support creating entity references. If the data includes entity references, the Load method resolves and expands any entity references.


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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0