updated convertXmlObjToArr() to static