XmlLoadSettings XmlLoadSettings XmlLoadSettings XmlLoadSettings XmlLoadSettings Class


Contains settings that are used during loading and parsing of XML documents. The default settings are chosen for the highest security. This class can be instantiated and is accepted by LoadXml, LoadFromUriAsync, and LoadFromFileAsync.

public : sealed class XmlLoadSettings : IXmlLoadSettings
struct winrt::Windows::Data::Xml::Dom::XmlLoadSettings : IXmlLoadSettings
public sealed class XmlLoadSettings : IXmlLoadSettings
Public NotInheritable Class XmlLoadSettings Implements IXmlLoadSettings
var xmlLoadSettings = new xmlLoadSettings();
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


XmlLoadSettings() XmlLoadSettings() XmlLoadSettings() XmlLoadSettings() XmlLoadSettings()

Creates a new XmlLoadSettings object.


ElementContentWhiteSpace ElementContentWhiteSpace ElementContentWhiteSpace ElementContentWhiteSpace ElementContentWhiteSpace

Specifies whether default handling preserves white space.

MaxElementDepth MaxElementDepth MaxElementDepth MaxElementDepth MaxElementDepth

Gets and sets the limits of the element depth of an XML document to be loaded into a DOM object.

ProhibitDtd ProhibitDtd ProhibitDtd ProhibitDtd ProhibitDtd

Gets or sets a value that specifies whether to prohibit or allow the inclusion of a DTD in the XML DOM document.

ResolveExternals ResolveExternals ResolveExternals ResolveExternals ResolveExternals

Gets or sets a value that specifies whether external definitions, resolvable namespaces, external subsets of document type definitions (DTDs), and external entity references are to be resolved at the time the document is parsed.

ValidateOnParse ValidateOnParse ValidateOnParse ValidateOnParse ValidateOnParse

Gets or sets a value that specifies whether the XML parser should validate this document against the document type definition (DTD) on loading.