Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XMLElement xml;
- void ProcessBooks(XMLElement foo)
- {
- // do smthng...
- }
- //-----------------------------------------------------------
- void ProcessStuff(XMLElement element)
- {
- XMLElement aaaas = element.getChild(0);
- println(aaaas.getName())
- }
- //-----------------------------------------------------------
- void setup() {
- size(200, 200);
- Books = new XMLElement(this, "sites.xml");
- int child_count = books.getChildCount();
- if (child_count < 2)
- return;
- ProcessBooks(books.getChild(0));
- ProcessStuff(books.getChild(1));
- }
- //-----------------------------------------------------------
Add Comment
Please, Sign In to add comment