protected static void writeVersionAttribute(String namespace,String attName,String attValue,XMLStreamWriter xmlWriter) throws XMLStreamException {
  if (namespace.length() == 0) {
    xmlWriter.writeAttribute(attName,attValue);
  }
 else {
    regPrefix(xmlWriter,namespace);
    xmlWriter.writeAttribute(namespace,attName,attValue);
  }
}

protected static void writeVersionAttribute ( String namespace , String attName , String attValue , XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( namespace . length ( ) == 0 ) { xmlWriter . writeAttribute ( attName , attValue ) ; } else { regPrefix ( xmlWriter , namespace ) ; xmlWriter . writeAttribute ( namespace , attName , attValue ) ; } }
util method to write an attribute without the ns prefix
