Fixing XML functions

The XML specific functions weren't updated to call the XML versions of the attributes and tags functions.