Fixing the XML functions.
They need to call the XML specific functions for sub-elements.
Merge pull request #3 from ToeBee/master

Fixing XML functions