According to the XML specification, the XML declaration (XMLDecl) is allowed only as the very first production in the prolog, which in turn can appear only as the very first production in the document. This means it must come before all comments or the XML file is invalid. Java and Python XML parsers fail on documents like this one which violate that part of the spec.
According to the XML specification, the XML declaration (XMLDecl) is allowed only as the very first production in the prolog, which in turn can appear only as the very first production in the document. This means it must come before all comments or the XML file is invalid. Java and Python XML parsers fail on documents like this one which violate that part of the spec.
Move the declaration up so our SVD is valid XML.