various fixes to XML prolog