How to parse xml attributes with jQuery alone?

后端 未结 3 1817
名媛妹妹
名媛妹妹 2020-12-31 04:57

I\'m already parsing xml successfully but i\'m stuck at getting an attribute of childrens.

XML Example:


    
        <         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 05:43

      $.get('data.xml', function(d) {
        $(d).find('entry').each(function() {
            var $entry = $(this);
            var pic = $e`enter code here`ntry.find('media\\:thumbnail, thumbnail').attr('url');
        })
    });
    

提交回复
热议问题