ParseXML?
in
Programming Questions
•
8 months ago
Has anyone else had problems trying to use ParseXML?
I'm running Processing 2.0b7 on a Mac running OSX 10.6 but when I try and call the function, I get the error "The function parseXML(string) does not exist"
This happens even if I copy and paste the example direct from the reference page itself:
String data = "<mammals><animal>Goat</animal></mammals>"; void setup() { XML xml = parseXML(data); if (xml == null) { println("XML could not be parsed."); } else { XML firstChild = xml.getChild("animal"); println(firstChild.getContent()); } } // Sketch prints: // Goat
If I try and run the above, then I get the error message.
Any ideas why? Do I need to include additional files or anything?
Thanks!
1