sample code with xml