new XMLElement won't work!
in
Programming Questions
•
2 years ago
XMLElement xml;
void setup(){
size(200, 200);
xml = new XMLElement(this, "anywhere/test.xml");
}
void draw(){
background(0,0,0);
}
This lines of code (simplified) won't work. If i try to run this on my computer with the Processing IDE that will perfectly work and the xml file I'm using can be anywhere (local, server, data folder). But if I try to put this inside an html webpage as a script it won't work at all, if I comment the line "xml = new ..." a black square will appear, so that line is making trouble and I really don't know the reason why. I tried to locate that xml file anywhere local, folder, another server but it won't work. Thank you guys ;)
This
void setup(){
size(200, 200);
xml = new XMLElement(this, "anywhere/test.xml");
}
void draw(){
background(0,0,0);
}
This lines of code (simplified) won't work. If i try to run this on my computer with the Processing IDE that will perfectly work and the xml file I'm using can be anywhere (local, server, data folder). But if I try to put this inside an html webpage as a script it won't work at all, if I comment the line "xml = new ..." a black square will appear, so that line is making trouble and I really don't know the reason why. I tried to locate that xml file anywhere local, folder, another server but it won't work. Thank you guys ;)
This
1