Not able to parse xml in jquery

Posted by Ravi Kumar H M on Stack Overflow See other posts from Stack Overflow or by Ravi Kumar H M
Published on 2010-03-17T13:05:38Z Indexed on 2010/03/17 13:11 UTC
Read the original article Hit count: 224

Filed under:

I am getting xml file path from browse button and trying to parse but it is not working.. here is my code below. I am new to jQuery.. please help

$(document).ready(function(){
  alert("hi")
  $("#uploadButton").click(function(){
    var val = $("input#file").val()
    alert( val ) // it is displaying...
    $(val).find("CommandModule").each(function() {
       alert("inside cmdModule") // it is not displaying..
       $(this).find("CommandGroup").each(function() {
          $(this).find("CommandExecution").each(function() {
             $("#test").append($(this).attr("cmdId"));                 
          });
       }); // closing CommandGroup
    }); // closing CommandModule

 }); // closing Click function
}); // closing ready function

© Stack Overflow or respective owner

Related posts about jQuery