fixed parsing failure on XML Declaration