Added more useful xml function to extract vals