Limits the size of an XML document to be loaded into a DOM object. A zero (0) value means no limits on the size of an XML document. A non-zero value specifies the maximum size, in multiples of 1024 characters. For ASCII, the size unit is KiloBytes (KB). This property is supported in MSXML 3.0 SP4 and MSXML 4.0 SP2.
domObj.setProperty(strProp, strVal); strVal= domObj.getProperty(strProp);
domObj.setProperty(strProp, strVal) strVal= domObj.getProperty(strProp)
HRESULT setProperty(BSTR strProp, VARIANT strVal); HRESULT getProperty(BSTR strProp, VARIANT* strVal);
When the DOM object is cloned, the value of this property is not propagated to the cloned object. You need to reset this property on the clone, if desired.
When the size of an XML document exceeds the limit set by this property, a load error will result when the document is parsed. Check the parseError
property on the DOM for a more detailed error message. These error messages can differ depending on when the document was parsed (for example, in the load
method on DOM as opposed to in the document
function in an XSLT style sheet, and so on).
The maximum value of this property is 4194303 (i.e., 222-1) characters. Setting this property to a value greater than this maximum value or to a negative value will result in error.
The size refers to the size of the loaded XML, so entities contribute to this size only once.
Component: MSXML 3.0 SP4, MSXML 4.0 SP2 and later
Interface: IXMLDOMDocument2
Method: setProperty | getProperty