XmlDocument.LoadXml Method

Definition

Overloads

LoadXml(String)

Loads an XML document using the supplied string. The document is parsed using the default parser settings.

LoadXml(String, XmlLoadSettings)

Loads an XML document using the supplied string. The document is parsed using the settings provided.

LoadXml(String)

Loads an XML document using the supplied string. The document is parsed using the default parser settings.

public:
 virtual void LoadXml(Platform::String ^ xml) = LoadXml;
/// [Windows.Foundation.Metadata.Overload("LoadXml")]
void LoadXml(winrt::hstring const& xml);
[Windows.Foundation.Metadata.Overload("LoadXml")]
public void LoadXml(string xml);
function loadXml(xml)
Public Sub LoadXml (xml As String)

Parameters

xml
String

Platform::String

winrt::hstring

The XML string to load into this XML document object. This string can contain an entire XML document or a well-formed fragment.

Attributes

See also

Applies to

LoadXml(String, XmlLoadSettings)

Loads an XML document using the supplied string. The document is parsed using the settings provided.

public:
 virtual void LoadXml(Platform::String ^ xml, XmlLoadSettings ^ loadSettings) = LoadXml;
/// [Windows.Foundation.Metadata.Overload("LoadXmlWithSettings")]
void LoadXml(winrt::hstring const& xml, XmlLoadSettings const& loadSettings);
[Windows.Foundation.Metadata.Overload("LoadXmlWithSettings")]
public void LoadXml(string xml, XmlLoadSettings loadSettings);
function loadXml(xml, loadSettings)
Public Sub LoadXml (xml As String, loadSettings As XmlLoadSettings)

Parameters

xml
String

Platform::String

winrt::hstring

The XML string to load into this XML document object. This string can contain an entire XML document or a well-formed fragment.

loadSettings
XmlLoadSettings

The settings for parsing the document.

Attributes

See also

Applies to