used arrays on the xml
used xml object
fix the xml issue