XMLHelpers: Tidied up XMLHelpers