[IMP]Improved code for sale_demo.xml