XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
Web Browsers Not Supporting XML 1.1
This section provides a tutorial example showing that XML 1.1 is not supported in all 4 major Web browsers: Google Chrome, Mozilla Firefox, Microsoft IE and Apple Safari.
After finishing testing XML 1.1 documents with Java, let's test Web browsers to see if they support XML 1.1 or not. Here is a valid XML 1.1 document, control-codes-1-1.xml, that was tested with Java:
<?xml version="1.1"?> <pre> SOH: (#x01;)=() STX: (#x02;)=() ETX: (#x03;)=() EOT: (#x04;)=() ENQ: (#x05;)=() ACK: (#x06;)=() BEL: (#x07;)=() BS: (#x08;)=() HT: (#x09;)=(	) LF: (#x0A;)=(
) VT: (#x0B;)=() FF: (#x0C;)=() CR: (#x0D;)=(
) SO: (#x0E;)=() SI: (#x0F;)=() </pre>
Run Google Chrome 97 and open control-codes-1-1.xml, I am getting this error:
This page contains the following errors: warning on line 1 at column 19: Unsupported version '1.1' error on line 3 at column 21: xmlParseCharRef: invalid xmlChar value 1 Below is a rendering of the page up to the first error.
Run Mozilla Firefox 96 and open control-codes-1-1.xml, I am getting this error:
XML Parsing Error: XML declaration not well-formed Location: file:///C:/herong/control-codes-1-1.xml Line Number 1, Column 16:<?xml version="1.1"?> ---------------^
Run Microsoft IE 10 and open control-codes-1-1.xml, I am getting this error:
Invalid version number. Error processing resource 'file:///C:/herong/control-codes-1-1.xml'. Line 1, Position 16 <?xml version="1.1"?> ---------------^
Run Apple Safari 12 and open control-codes-1-1.xml, I am getting this error:
This page contains the following errors: warning on line 1 at column 19: Unsupported version '1.1' error on line 3 at column 21: xmlParseCharRef: invalid xmlChar value 1 Below is a rendering of the page up to the first error.
The picture below shows the "Unsupported version '1.1'" error given by Google Chrome 34:
Conclusion: XML 1.1 standard introduced in 2004 has not been implemented in all 4 major Web browsers in 2021.
Table of Contents
Introduction of XML (eXtensible Markup Language)
DOM (Document Object Model) Programming Interface
SAX (Simple API for XML) Programming Interface
DTD (Document Type Definition) Introduction
Validating an XML Document against the Specified DTD Document Type
XSD (XML Schema Definition) Introduction
Validating XML Documents Against Specified XML Schemas
XSL (Extensible Stylesheet Language) Introduction
XSLT (XSL Transformations) Introduction
XSLT Elements as Programming Statements
Control and Generate XML Element in the Result
PHP Extensions for XML Manipulation
Processing XML with Python Scripts
XML Tools Plugin for Notepad++
XML Plugin Packages for Atom Editor
►XML 1.1 Changes and Parsing Examples
Supporting XML 1.1 in Java and Higher
Control Codes Supported in XML 1.1
Unicode Characters Supported in XML 1.1 Names
End-of-Line Characters Supported in XML 1.1