Add XML parsing support

Closes #9