Since it is written on processing help that XMLElement is deprecated, I used XML class. And I could read my xml file successfully using this code on
Standard processing mode. Whenever I tried
Android mode, and run the app on I got this error:
FATAL EXCEPTION: Animation Thread java.lang.NoClassDefFoundError: processing.core.XML at processing.android.test.game_xml_parser.game_xml_parser.setup(game_xml_parser.java:42) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:1020)
For android version I changed my code as follows:
XML xmlFile;
xmlFile = new XML(this, "/sdcard/test/deneme.xml");