format xml for list