This has got me completely baffled. If I make an XML 1.0 file, like so:
... and run it through an XML validator, it validates. However, I would like to use XML V1.1, by making a simple change: 1.0 becomes 1.1, like so.
If I run this through the validator, it tells me that my XML declaration isn't well-formed, and the error is on column 16 of line 1. What is making it invalid?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<test>
<integer len="1">3</integer>
<string len="5">Blah!</string>
<string len="25"><>&'"</string>
<double len="5">293.0</double>
</test>
Code:
<?xml version="1.1" encoding="UTF-8"?>
<test>
<integer len="1">3</integer>
<string len="5">Blah!</string>
<string len="25"><>&'"</string>
<double len="5">293.0</double>
</test>