Add method xmlToArray