case START_ELEMENT:
out.startElement(in.getNameCode(), in.getTypeAnnotation(), 0, 0);
NamespaceDeclarations decl = in.getNamespaceDeclarations();
for (int i=0; i<decl.getNumberOfNamespaces(); i++) {
out.namespace(decl.getNamespaceCode(i), 0);
}
AttributeCollection atts = in.getAttributes();
for (int i=0; i<atts.getLength(); i++) {
out.attribute(atts.getNameCode(i), atts.getTypeAnnotation(i),