}
/** {@inheritDoc} */
public Element startMakingElement(String qname, String namespaceURI) {
String localName = getLocalName(qname);
Element first = current.getFirstChildElement(localName, namespaceURI);
if (first == null) {
first = new Element(qname, namespaceURI);
incrementValue(first, "descendants-or-self", 0);
incrementValue(first, "instances", 0);
incrementValue(first, "children", 0);
incrementValue(first, "attributes", 0);
current.appendChild(first);
}
incrementValue(first, "descendants-or-self", 1);
incrementValue(first, "instances", 1);
Element parent = (Element) first.getParent();
incrementValue(parent, "children", 1);
incrementDescendantOrSelf(parent);
current = first; // recurse down
return new Element(DUMMY);
}