name
printElementTree ( )
/*
This example loads a xml file and prints it.
 */

import proxml.*;

XMLInOut xmlIO;

void setup(){
  size(400,400);

  xmlIO = new XMLInOut(this);
  xmlIO.loadElement("my-xml-file.xml");
}

void xmlEvent(XMLElement element){
  element.printElementTree();
}

void draw(){
}
description
Use this method for a simple trace of the XML structure, beginning from a certain XMLElement.
syntax
printElementTree();
printElementTree(dist);
parameters
dist
String, String for formating the output
returns
None
usage
Web & Application
related