load local xml file

Hi, I'm trying to load local xml file whitout sucess. My variable is empty and I have always this error : no content type found for .xml

I don't think it's a browser bug because the function loadStrings() works well. But even to translate this string to xml, I have the same error Here's the code :

var chants;
function setup() {
}
function draw() {
  text(chants, 20 , 30);
}
function preload(){  
  chants = loadXML("assets/chants.xml");
}

Thanks

Tagged:
Sign In or Register to comment.