changed datalayer to handle xml instead of individual properties. this should ensure better flexibility regarding adding properties to the ap states