Вот типо через яхо Трубу
<div id=Div1></div>
<script>
var query = 'select * from html where url="http://code.jquery.com/jquery-latest.js" and xpath="*"'
var url = 'http://query.yahooapis.com/v1/public/yql?q='+encodeURI(query)+'&format=xml&callback=callback';
document.body.appendChild(document.createElement('script')).src = url;
function callback(data) {
//document.getElementById('Div1')= data.results[0];
alert(data.results[0])
}
</script>