Define $xml to pass xml object