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. False in 6.0. 3.0, 6.0
AllowXsltScript Property Boolean True in 3.0. False in 6.0 3.0, 6.0
ForcedResync Boolean True 3.0, 6.0
MaxElementDepth Property Integer 0 in 3.0. 256 in 6.0. 3.0, 6.0
MaxXMLSize Integer 0 3.0, 6.0
MultipleErrorMessages Boolean False 6.0
NewParser Boolean False 6.0
NormalizeAttributeValues Boolean False 6.0 SP2
PopulateElementDefaultValues Property Boolean False 6.0
ProhibitDTD Boolean False in 3.0. True in 6.0. 3.0, 6.0
ResolveExternals Boolean False 6.0*
SelectionLanguage String "XSLPattern" in 3.0. "XPath" in 6.0 3.0, 6.0
SelectionNamespaces String "" 3.0, 6.0
ServerHTTPRequest Boolean False 3.0, 6.0
UseInlineSchema Boolean False 6.0
ValidateOnParse Boolean True 6.0*

(*) The feature of this property is also available as a first-level property in MSXML 3.0.


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.