158159160161162163164165166167168
XmlElement root = document.getRoot(); String name = root.getType(); if (name.equals("svg")) { Iterator children = root.elements(); while (children.hasNext()) { XmlElement child = (XmlElement) children.next(); name = child.getType();