bloated jquery xml requests

Posted by Tim Joyce on Stack Overflow See other posts from Stack Overflow or by Tim Joyce
Published on 2010-12-21T14:50:29Z Indexed on 2010/12/21 14:54 UTC
Read the original article Hit count: 256

Filed under:

Hi, I was wondering if anyone had an alternative to this.

          $(xml).find("a").each(function(){
           $(this).find('b').each(function(){
               $(this).find('c').each(function(){
                   $(this).find('d1').each(function(){
                        sectionValidation.RegisterTerms.setRegisterTermsArray(this);
                   });
                    $(this).find('d2').each(function(){
                        sectionValidation.RegisterTerms.checkValidVariations(this, val);
                    });
               });
           });
       });

It seems really bloated and there has to be a more elegant approach to getting nested xml data. Thank you

© Stack Overflow or respective owner

Related posts about jquery-xml