Export (0) Print
Expand All

xmlEncoding property

Gets a value that represents the character encoding that is specified in the declaration of an XML document.

Document Object Model (DOM) Level 3 Core Specification, Section 1.2Internet Explorer 9

 

Syntax

JavaScript

p = object.xmlEncoding

 

Property values

Type: String

A String that represents the character encoding, or a null value if the character encoding is not specified in the declaration or the specified value is not known.

Standards information

Examples

The following code example shows an XML declaration that specifies character encoding.


<?xml encoding="UTF-8"?>

See also

document

 

 

Show:
© 2014 Microsoft