Merge pull request #3 from ToeBee/master

Fixing XML functions