Document: xmlEncoding property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("DOM")}}

The **xmlEncoding** read-only property of the {{domxref("Document")}} interface returns the encoding as determined by the XML declaration. Should be null if unspecified or unknown.

توجه: Do not use this attribute; it has been removed from the DOM Level 4 specification and is no longer supported in Firefox 10.0.

Consider the following XML Declaration:

xml
<?xml version="1.0" encoding="UTF-16"?>

Then, the result should be "UTF-16".

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}