Changed sample code to comply with the new xmlData call