Added simplexml code to import xml and convert to an array.