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.

PropertyVariant TypeDefault ValueMSXML Component
AllowDocumentFunctionBooleanTrue in 3.0. False in 6.0.3.0, 6.0
AllowXsltScript PropertyBooleanTrue in 3.0. False in 6.03.0, 6.0
ForcedResyncBooleanTrue3.0, 6.0
MaxElementDepth PropertyInteger0 in 3.0. 256 in 6.0.3.0, 6.0
MaxXMLSizeInteger03.0, 6.0
MultipleErrorMessagesBooleanFalse6.0
NewParserBooleanFalse6.0
NormalizeAttributeValuesBooleanFalse6.0 SP2
PopulateElementDefaultValues PropertyBooleanFalse6.0
ProhibitDTDBooleanFalse in 3.0. True in 6.0.3.0, 6.0
ResolveExternalsBooleanFalse6.0*
SelectionLanguageString"XSLPattern" in 3.0. "XPath" in 6.03.0, 6.0
SelectionNamespacesString""3.0, 6.0
ServerHTTPRequestBooleanFalse3.0, 6.0
UseInlineSchemaBooleanFalse6.0
ValidateOnParseBooleanTrue6.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.

Show: