*/
int getPosition(String name) {
List children = document.getElement().getChildren();
for (Iterator i = children.iterator(); i.hasNext();) {
Element testElement = (Element) i.next();
if (testElement.getName().equals(name)) {
return testElement.getPosition();
}
}
throw new IllegalArgumentException("no element named '" + name + "'");
}