Easy Tutorial
❮ Prop Document Xmlencoding Dom Nodelist ❯

XML DOM xmlVersion Property



Definition and Usage

The xmlVersion property sets or returns the XML version of the document.

Syntax


Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and displays the XML encoding, standalone attribute, and the XML version of the document:

Example

Output:

XML encoding: UTF-8
XML standalone: false
XML version: 1.0
Encoding used when parsing: UTF-8

❮ Prop Document Xmlencoding Dom Nodelist ❯