Load()

XmlDocument::Load(String) method

Loads the XML document from the specified URL.

virtual void System::Xml::XmlDocument::Load(String filename)

Arguments

ParameterTypeDescription
filenameStringURL for the file containing the XML document to load. The URL can be either a local file or an HTTP URL (a Web address).

XmlDocument::Load(SharedPtr<IO::Stream>) method

Loads the XML document from the specified stream.

virtual void System::Xml::XmlDocument::Load(SharedPtr<IO::Stream> inStream)

Arguments

ParameterTypeDescription
inStreamSharedPtr<IO::Stream>The stream containing the XML document to load.

XmlDocument::Load(SharedPtr<IO::TextReader>) method

Loads the XML document from the specified TextReader.

virtual void System::Xml::XmlDocument::Load(SharedPtr<IO::TextReader> txtReader)

Arguments

ParameterTypeDescription
txtReaderSharedPtr<IO::TextReader>The TextReader used to feed the XML data into the document.

XmlDocument::Load(SharedPtr<XmlReader>) method

Loads the XML document from the specified XmlReader.

virtual void System::Xml::XmlDocument::Load(SharedPtr<XmlReader> reader)

Arguments

ParameterTypeDescription
readerSharedPtr<XmlReader>The XmlReader used to feed the XML data into the document.

See Also