How do I convert an xml to array?