The following code fragment uses the xml file: "books.xml".
Return wether the XMl document is of type standalone or not:
The result will be:
The xmlStandalone property sets and returns wether the XML document is standalone or not.
This property is intended for XML documents, and wil not work properly for HTML documents.
![]()
The xmlStandalone property is only supported in Firefox, Chrome, and Safari.
Set the xmlStandalone:
Return the xmlStandalone:
| Return Value: | Boolean, true|false |
|---|---|
| Default Value: | false |
| DOM Version | Core Level 3 |
Your message has been sent to W3Schools.