public void output(Element element, Writer out) throws IOException {
    // If this is the root element, we could pre-initialize the namespace stack with the namespaces
    printElement(out, element, 0, new NamespaceStack());
    out.flush();
  }
public void output(Element element, Writer out)