xmlVersion property
Gets or sets the version attribute that is specified in the declaration of an XML document.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: String
The version attribute that is set in the declaration of the XML `` document.
-
The version attribute is set to
1.0or is not specified for a document that supports theXMLfeature. -
The document does not support the
XMLfeature.
Standards information
Remarks
Applications should use the normalize method after they change the xmlVersion property.
Examples
The following code example shows an XML declaration that specifies a values for the version attribute.
<?xml version="1.0"?>
See also
Show:

