xmlhash.is_a? String also handles subclasses - not strictly necessary but good to keep as best practise