MaxXMLSize Property
[This property was not implemented in the early versions of MSXML 5.0 used to produce this documentation. Its availability is subject to change in later versions as MSXML 5.0 is released or updated in the future.]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.
JScript Syntax
domObj.setProperty(strProp, strVal); strVal= domObj.getProperty(strProp);
Visual Basic Syntax
domObj.setProperty(strProp, strVal) strVal= domObj.getProperty(strProp)
C/C++ Syntax
HRESULT setProperty(BSTR strProp, VARIANT strVal); HRESULT getProperty(BSTR strProp, VARIANT* strVal);
Value
- strProp
- A BSTR string whose value is "MaxXMLSize".
- strVal
- An integer of the VARIANT type. In MSXML 3.0 SP4 and MSXML 4.0 SP2, the default value of this property is 0, meaning that there is no limit in size. In later versions, the default value is 10*210 characters. For the ASCII character set, this is 10MB.
Remarks
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.
Applies To
Component: MSXML 3.0 SP4, MSXML 4.0 SP2 and later
Interface: IXMLDOMDocument2
Method: setProperty | getProperty