System.Xml.XmlDataDocument.Load Method

Loads the XmlDataDocument using the specified URL.

Syntax

public override void Load (string filename)

Parameters

filename
The URL of the file containing the XML document to load.

Remarks

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

Note:

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 System.Data.DataSet.ReadXmlSchema(XmlReader) method or by creating the tables and columns within the DataSet manually. This step must be done before calling Load.

Requirements

Namespace: System.Xml
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0