how to insert state,city,district,country to xml

hi anybody tell me how to insert data of country,state,district.in the same manner how to extract that to dropdown cascading like if its india means that following states,its ap means that following states using jquery or ajax plz help me