SPDX comments need to be after <?xml version="1.0" encoding="UTF-8"?> in XML files.
<?xml version="1.0" encoding="UTF-8"?>