Add copy constructor to XMLParser.

This might solve #32.