Reading xml file in a class using XMLElement
in
Programming Questions
•
2 years ago
I want to load and process an xml file in a class, not in setup or draw or any other method that would be in PApplet directly.
So,how do I construct an XMLElement if I have to pass a reference to the PApplet?
class myClass
{
......
......
void methodToReadXMLFIle( String filename )
{
XMLElement xmlElt = new XMLElement( ?WHAT-DO-I-PUT-HERE?, filename );
...
}
}
1