private static void printQualifiedName(Writer out, Element e) throws IOException {
    if (e.getNamespace().getPrefix().isEmpty()) {
      out.write(e.getName());
    }
    else {
      out.write(e.getNamespace().getPrefix());
      out.write(':');
      out.write(e.getName());
    }
  }
private static void printQualifiedName(Writer out, Element e)