Not able to parse xml in jquery
- by Ravi Kumar H M
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