html代码如下
<html xmlns="http://www.w3.org/1999/xhtml" >
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>ExtJS</title>
                <script src="script/jquery.js"></script>
<script>
function get (){
    $.ajax({    
    url:"user_list.php",    
    type: "GET",    
    dataType: "xml",
    cache: true,
    error: function(xml){    
        alert('Error loading XML document'+xml);    
    },    
    success: function(data){
        var name = '';
            $(data).find('user').each(function(){
                name += $(this).children("UserName").text();
                name += '<br>';
                $('#dic').html(name); 
            });
    }
}); 
}
$(document).ready(function(){
    get();
})</script>
        <body>
        <div id="dic"></div> 
        </body>
</html>
php代码user_list.phpheader("content-type:text/xml");
print <<<EOH
<?xml version="1.0" encoding="UTF-8" ?> 
<UserList>
    <user>
        <UserName>name1</UserName> 
        <name>111</name> 
        <pwaddress>111</pwaddress> 
        <RegistTime>2010-02-04 13:11:18</RegistTime> 
    </user>
</UserList>
EOH;到底哪有错误啊?
直接连接xml文档没有问题,
连接php文件就错误了,我的php页面有错误吗?