dont ommit XML declaration
#17 reproduced
fixes #17: empty input parsed correctly