xmlStandalone
Summary
Gets or sets the value of the standalone attribute in the declaration of an XML document.
Property of dom/Documentdom/Document
Syntax
var isStandalone = document.xmlStandalone;
document.xmlStandalone = isStandalone;
Return Value
Returns an object of type BooleanBoolean
Examples
The following example shows an XML declaration that specifies a value for the standalone attribute.
<?xml standalone="yes"?>
Notes
Setting the value of the xmlStandalone property does not cause an XML document to validate. Use the normalize method instead.
Related specifications
- DOM Level 3 Core
- Recommendation
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]