Basically, when an XML file has a declaration like this:
<?xml version="1.0" encoding="windows-1251"?>
(Note the specific encoding) one can neither perform validation against xsd nor anything else. I have to use a workaround - I just remove the XML declaration then perform necessary operations (validation or pretty printing) and then paste the declaration back, but this is a bit cumbersome, especially if you have to work with tons of XML files. Is there a way to fix this?