how to read the object value in jquery
<p>I want to read the object value in jquery but if am trying to use text function it shows me blank.The code is as below :</p>

<pre><code>var param = $(this).find('parameter');

                  if(param.attr('pathvar')){
                    var pathvar=param.attr('pathvar');
                    url=url+'/'+pathvar
                    alert(url);
                  }
                  var numLow = 0;
                  var numHigh = (param.length-1);                  
                  var adjustedHigh = (parseFloat(numHigh) - parseFloat(numLow)) + 1;
                  var numRand = Math.floor(Math.random()*adjustedHigh) + parseFloat(numLow);   
                      alert(numRand); 
                      alert("here");  
                      alert(param);   
                  var selParamVal = param.eq((numRand)).text();
                   alert(param.eq((numRand)).text());
makeAPIRequest(selParamVal,requestType,url);                                 
                }
          });

        } 
    }  

function makeAPIRequest(reqjson,reqType,url){
    var json = JSON.stringify(reqjson); 

    $.ajax({
         url:url,    
         type:reqType,
         processData: false,  
         contentType:"application/json; charset=utf-8",
             data:reqjson,
         headers:{sm_user:'999999300'},
         success:function(data){
           var resp = JSON.stringify(data);
           var textarea = jQuery('#responseEl');
           textarea.text(resp);  
        },
       error:function(jqXHR, textStatus, errorThrown){
            var textarea = jQuery('#responseEl');
            textarea.text(jqXHR.responseText);
     }
    });

  }
</code></pre>

<p>The selParamVal is blank.And if even if i add numRand as [numRand] it does not make an ajax call
Trying to read this xml :I am able to get upto url but fails in parameter</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;apis xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'&gt;
    &lt;api name="getFieldType" requesttype ="GET"&gt;
         &lt;url&gt;/fieldtype/&lt;/url&gt;       
         &lt;parameters&gt;
             &lt;parameter&gt;&lt;![CDATA[fieldtype=textbox&amp;fieldId=8668376496495]]&gt;&lt;/parameter&gt;
             &lt;parameter&gt;&lt;![CDATA[fieldtype=number&amp;fieldId=93468613046610]]&gt;&lt;/parameter&gt;
             &lt;parameter&gt;&lt;![CDATA[fieldtype=multiline&amp;fieldId=1367537832000]]&gt;&lt;/parameter&gt;
          &lt;/parameters&gt;
    &lt;/api&gt;
&lt;/apis&gt;
</code></pre>
