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
Microsoft Developer Network: [Windows Internet Explorer API reference Article]