xmlStandalone property
Gets or sets the value of the standalone attribute in the declaration of an XML document.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
-
Default. The standalone attribute is set to
no, was not specified, or is not appropriate for the document. -
The standalone attribute is set to
yes.
Standards information
Remarks
Setting the value of the xmlStandalone property does not cause an XML document to validate. Use the normalize method instead.
Examples
The following example shows an XML declaration that specifies a value for the standalone attribute.
<?xml standalone="yes"?>
See also
Show:

