Processing an AJAX request

Processing an AJAX request

Hi,

I'm having troubles parsing an XML-File I load via JQuery. I tried a lot, but I'm not gonna post everything I try here, that would be to much. Let's start with my simplest version, why does this not work, and how would it work?

My XML Document:
<?xml version="1.0" ?>
<header name="test">test</header>


My code inside the .ready-function:
$.post("agb_data.php",
   "",
   function(data){
      data.find("header").each(function() {
         $("#agb_text").html($(this).text());
      })
   }
);


It simply won't show anything.

Thanks a lot,
Luke