using phpArray instead of xml