XML DOM Properties


Second-Level DOM Properties

Second-level DOM properties are properties that are manipulated through the setProperty or getProperty method on the DOM. The following is a complete list of second-level DOM properties.

Property Variant Type Default Value MSXML Component

AllowDocumentFunction

Boolean

True in 3.0, 4.0, 5.0. False in 6.0.

3.0 SP4, 4.0 SP2, 5.0, 6.0

AllowXsltScript Property

Boolean

True in 3.0, 5.0. False in 6.0

3.0 SP8, 5.0 SP2, 6.0

ForcedResync

Boolean

True

3.0 SP3, 4.0 SP1, 5.0, 6.0

MaxElementDepth Property

Integer

0 in 3.0, 5.0. 256 in 6.0.

3.0 SP8, 5.0 SP2, 6.0

MaxXMLSize

Integer

0

3.0 SP4, 4.0 SP2, 5.0, 6.0

MultipleErrorMessages

Boolean

False

5.0, 6.0

NewParser

Boolean

False

4.0, 5.0, 6.0

NormalizeAttributeValues

Boolean

False

6.0 SP2

PopulateElementDefaultValues Property

Boolean

False

6.0 SP1

ProhibitDTD

Boolean

False in 3.0, 4.0, 5.0. True in 6.0.

3.0 SP5, 4.0 SP3, 5.0 SP2, 6.0

ResolveExternals

Boolean

True in 5.0, False in 6.0

5.0, 6.0*

SelectionLanguage

String

"XSLPattern" in 3.0. "XPath" in 4.0, 5.0, 6.0

3.0, 4.0, 5.0, 6.0

SelectionNamespaces

String

""

3.0, 4.0, 5.0, 6.0

ServerHTTPRequest

Boolean

False

3.0, 4.0, 5.0, 6.0

UseInlineSchema

Boolean

True in 5.0, False in 6.0

5.0, 6.0

ValidateOnParse

Boolean

True

5.0, 6.0*

(*) The feature of this property is also available as a first-level property prior to MSXML 5.0 for Microsoft Office Applications.

Remarks

The preceding table shows the properties that you can set using the setProperty method. White space is not stripped or normalized in property names or values.

To set a second-level property on a DOM object, use the setProperty method as shown in the following JScript snippet:

domObj.setProperty('ValidateOnParse', false);

In contrast, first-level properties are exposed directly on the DOM. To set a first-level property, assign a value directly, as shown in the following JScript snippet:

domObj.validateOnParse = false;

Many properties have security implications. For more information, see MSXML Security Overview.

Page view tracker