new helper methods for XML