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.

xmlVersion

Summary

Gets or sets the version attribute that is specified in the declaration of an XML document.

Property of dom/Documentdom/Document

Syntax

var version = document.xmlVersion;
document.xmlVersion = newVersion;

Return Value

Returns an object of type StringString

The XML version of document.

Examples

The following code example shows an XML declaration that specifies a values for the version attribute.

<?xml version="1.0"?>

Notes

Applications should use the normalize method after they change the xmlVersion property.

Related specifications

DOM Level 3 Core
Recommendation

Attributions