Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlDataDocument::Load Method (TextReader^)

 

Loads the XmlDataDocument from the specified TextReader.

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

public:
virtual void Load(
	TextReader^ txtReader
) override

Parameters

txtReader
Type: System.IO::TextReader^

The TextReader used to feed the XML data into the document.

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

System_CAPS_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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft