Fix XML processing
Merge pull request #82 from duncannz/master

Fix XML processing