--
You received this message because you are subscribed to the Google Groups "Processing.js" group.
To post to this group, send email to proces...@googlegroups.com.
To unsubscribe from this group, send email to processingjs...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/processingjs?hl=en.
One caveat though: are you sure you want XML? In the world of web APIs
there are generally two ways of getting data, XML and JSON. XML works
but due to security issues you can't load XML from one server from
another. It's complicated but basically it comes down to this: if you
use XML you will do the same thing I did and constantly fight against
weird bugs caused by this. XML is great for local files, if you are
pulling the data separately and storing it somewhere, but if you are
trying to pull from a server every time your sketch runs I recommend you
use JSON instead, I guarantee you it will cause a lot fewer headaches
and probably be better for you in the long run. And it's not that
different, conceptually, from XML, it's essentially the same thing with
different punctuation. This tutorial
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
is not useful for what you want to do, but has a nice illustration that
shows the relationship between XML and JSON well. Again, jquery has
great tools for pulling JSON data, my advice at the top on that one
still stands.
HTH,
--Steen
if (window.XMLHttpRequest){
xhttp=new XMLHttpRequest();
}else{
// for IE 5/6
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET","myfile.xml",false);
xhttp.send();
alert(http.responseXML);
//J