This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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