Skip to main content
XmlDocument.LoadXml(String, XmlLoadSettings) | loadXml(String, XmlLoadSettings) method

Applies to Windows and Windows Phone

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

Syntax


xmlDocument.loadXml(xml, loadSettings);

public void LoadXml(
  string xml, 
  XmlLoadSettings loadSettings
)

Public Sub LoadXml(
  xml As String,  
  loadSettings As XmlLoadSettings 
)

public:
void LoadXml(
  String^ xml, 
  XmlLoadSettings^ loadSettings
)

Parameters

xml

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

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

loadSettings

Type: XmlLoadSettings

The settings for parsing the document.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Xml.Dom
Windows::Data::Xml::Dom [C++]

Metadata

Windows.winmd

See also

XmlDocument
LoadXml(String)