XmlLoadSettings class

Applies to Windows and Windows Phone

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.

Syntax


var xmlLoadSettings = new Windows.Data.Xml.Dom.XmlLoadSettings();

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The XmlLoadSettings class has these types of members:

Constructors

The XmlLoadSettings class has these constructors.

ConstructorDescription
XmlLoadSettings Creates a new XmlLoadSettings object.

 

Properties

The XmlLoadSettings class has these properties.

PropertyAccess typeDescription

ElementContentWhiteSpace

Read/writeSpecifies whether default handling preserves white space.

MaxElementDepth

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

ProhibitDtd

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

ResolveExternals

Read/writeGets 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

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

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

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

 

 

Show:
© 2014 Microsoft. All rights reserved.