fixes #4 - stripping xml declaration in input