The following code fragment uses the xml file: "books.xml".
Return the XMl version of the XML document:
The result will be:
The xmlVersion property sets and returns the xml version of the XML document.
This property is intended for XML documents, and wil not work properly for HTML documents.
![]()
The xmlVersion property is only supported in Firefox, Chrome, and Safari.
Set the xmlVersion
Return the xmlVersion
| Return Value: | A String, representing the XML document's xml version |
|---|---|
| DOM Version | Core Level 3 |
Your message has been sent to W3Schools.