XML and Text Declarations are Ordered!

Although the text doesn't mention it, the grammar makes it clear that the things appearing in XML and Text declaration must be in one and only one order. Which is to say that neither

<?xml encoding='UTF-8' version='1.0'?>

nor

<?xml standalone='no' encoding='ASCII'?>

are well-formed.

Back-link to spec

Copyright © 1998, Tim Bray. All rights reserved.