Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft