Guest User

Untitled

a guest
Jul 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. XMLElement xml;
  2.  
  3. void ProcessBooks(XMLElement foo)
  4. {
  5.     // do smthng...
  6. }
  7. //-----------------------------------------------------------
  8.  
  9. void ProcessStuff(XMLElement element)
  10. {
  11.     XMLElement aaaas = element.getChild(0);
  12.     println(aaaas.getName())
  13. }
  14. //-----------------------------------------------------------
  15.  
  16. void setup() {
  17.     size(200, 200);
  18.     Books = new XMLElement(this, "sites.xml");
  19.     int child_count = books.getChildCount();
  20.     if (child_count < 2)
  21.         return;
  22.        
  23.     ProcessBooks(books.getChild(0));
  24.     ProcessStuff(books.getChild(1));
  25. }
  26. //-----------------------------------------------------------
Add Comment
Please, Sign In to add comment