fixes #4 - stripping xml declaration in input

nothing much to say about this...