Export (0) Print
Expand All

xmlStandalone property

Gets or sets the value of the standalone attribute in the declaration of an XML document.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2Internet Explorer 9

Syntax

JavaScript

p = object.xmlStandalone

Property values

Type: Boolean

false (false)

Default. The standalone attribute is set to no, was not specified, or is not appropriate for the document.

true (true)

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

document

 

 

Show:
© 2014 Microsoft