fix data for xml and namespaces for php