standalone Property
Sets the value of the standalone
attribute in the XML declaration to "yes" or "no". If set to True, the XML declaration appears as the following in XML output:
<?xml version="1.0" encoding="UTF-16" standalone="yes"?>
Visual Basic Usage Syntax
oMXXMLWriter.standalone = boolValue
boolValue = oMXXMLWriter.standalone
C/C++ Syntax
[propput]
HRESULT standalone (
[in] VARIANT_BOOL fValue);
[propget]
HRESULT standalone (
[out, retval] VARIANT_BOOL * fValue);
Parameters
fValue
A Boolean expression (True/False) specifying whether the feature is on or off.
Return Values
S_OK
The value returned if no errors are reported.
Remarks
Boolean. Read/write. The default value is False. The standalone declaration indicates if a document relies on information from an external source, such as external document type definition (DTD), for its content.
If set to False, the XML parser will accept external resources, if there are any, without reporting an error. If set to True, the parser reports an error if the document references an external DTD or external entities.
Value | Description |
---|---|
True | The value of standalone is set to "yes". |
False (default) | The value of standalone is set to "no". |
Versioning
Implemented in: MSXML 3.0 and later