Some simple xml utility functions