protected void tag(String tag,String[] names,String[] values,int nattr,boolean close){
  spacing();
  m_out.print('<');
  m_out.print(tag);
  for (int i=0; i < nattr; ++i) {
    m_out.print(' ');
    m_out.print(names[i]);
    m_out.print('=');
    m_out.print('\"');
    escapeString(values[i]);
    m_out.print('\"');
  }
  if (close)   m_out.print('/');
  m_out.print('>');
  println();
  if (!close) {
    m_tagStack.add(tag);
  }
}

protected void tag ( String tag , String [ ] names , String [ ] values , int nattr , boolean close ) { spacing ( ) ; m_out . print ( '<' ) ; m_out . print ( tag ) ; for ( int i = 0 ; i < nattr ; ++ i ) { m_out . print ( ' ' ) ; m_out . print ( names [ i ] ) ; m_out . print ( '=' ) ; m_out . print ( '\"' ) ; escapeString ( values [ i ] ) ; m_out . print ( '\"' ) ; } if ( close ) m_out . print ( '/' ) ; m_out . print ( '>' ) ; println ( ) ; if ( ! close ) { m_tagStack . add ( tag ) ; } }
internal method for printing a tag with attributes .
