Using JQuery I am sending an Ajax GET to a web server. The web server is replying with an xml block like this;
<?xml version="1.0" encoding="ISO-8859-1"?>
<ajax-response>
<response>
some response here
</response>
<response>
some response here
</response>
</ajax-response>
The jQuery get looks like this;
jQuery.get(name,parms,function(data){xmlProcess(data);});
The xmlProcess funcion like this;
function xmlProcess(data){
jQuery('response',data).each(function(i){
t = ?what?;
});
}
My problem is that the stuff being sent back from the server, in the "some response here" part is xhtml. So I can access it as xml using stuff like
t = jQuery(this).find("div").attr("id");
But what I really want is the "some response here" part as text, ie as a string. So the string can contain, for example;
<div id"bob">hello</div>