프로그래밍/jQuery

jQuery로 xml 파싱하기

Crazy_Kong 2009. 5. 19. 14:44

 

 var html = $.ajax(

                               url : xml 주소

                               async : true;

                               success : 가져온 결과를 처리하기 위한 함수 ex ) xml_pars;

                    );

 

xml_pars()

function xml_pars(xml)

{

     $(xml).find('item').each(function(){

          $(this).find('link').text();

     }

}