From
http://www.w3.org/TR/REC-xml/#sec-prolog-dtd
XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
Therefore, the correct order is version, encoding, standalone declaration.
Not, that while these may look like XML attributes neither these, or those found in processing instructions are actually attributes, they mealy follow the label/value pair convention of attributes.
/- Sam Judson : Wrox Technical Editor -/