public void startElement(String uri,String localName,String qName,Attributes attributes) throws org.xml.sax.SAXException {
  if (qName.equals(Translation.XML_TAG) || qName.equals(Translation.XML_TAG2)) {
    m_AD_Language=attributes.getValue(Translation.XML_ATTRIBUTE_LANGUAGE);
    m_isBaseLanguage=Language.isBaseLanguage(m_AD_Language);
    m_TableName=attributes.getValue(Translation.XML_ATTRIBUTE_TABLE);
    m_updateSQL="UPDATE " + m_TableName;
    if (!m_isBaseLanguage)     m_updateSQL+="_Trl";
    m_updateSQL+=" SET ";
    log.fine("AD_Language=" + m_AD_Language + ", Base="+ m_isBaseLanguage+ ", TableName="+ m_TableName);
  }
 else   if (qName.equals(Translation.XML_ROW_TAG)) {
    m_curID=attributes.getValue(Translation.XML_ROW_ATTRIBUTE_ID);
    m_trl=attributes.getValue(Translation.XML_ROW_ATTRIBUTE_TRANSLATED);
    m_sql=new StringBuffer();
  }
 else   if (qName.equals(Translation.XML_VALUE_TAG)) {
    m_curColumnName=attributes.getValue(Translation.XML_VALUE_ATTRIBUTE_COLUMN);
  }
 else   log.severe("UNKNOWN TAG: " + qName);
  m_curValue=new StringBuffer();
}

public void startElement ( String uri , String localName , String qName , Attributes attributes ) throws org . xml . sax . SAXException { if ( qName . equals ( Translation . XML_TAG ) || qName . equals ( Translation . XML_TAG2 ) ) { m_AD_Language = attributes . getValue ( Translation . XML_ATTRIBUTE_LANGUAGE ) ; m_isBaseLanguage = Language . isBaseLanguage ( m_AD_Language ) ; m_TableName = attributes . getValue ( Translation . XML_ATTRIBUTE_TABLE ) ; m_updateSQL = "UPDATE " + m_TableName ; if ( ! m_isBaseLanguage ) m_updateSQL += "_Trl" ; m_updateSQL += " SET " ; log . fine ( "AD_Language=" + m_AD_Language + ", Base=" + m_isBaseLanguage + ", TableName=" + m_TableName ) ; } else if ( qName . equals ( Translation . XML_ROW_TAG ) ) { m_curID = attributes . getValue ( Translation . XML_ROW_ATTRIBUTE_ID ) ; m_trl = attributes . getValue ( Translation . XML_ROW_ATTRIBUTE_TRANSLATED ) ; m_sql = new StringBuffer ( ) ; } else if ( qName . equals ( Translation . XML_VALUE_TAG ) ) { m_curColumnName = attributes . getValue ( Translation . XML_VALUE_ATTRIBUTE_COLUMN ) ; } else log . severe ( "UNKNOWN TAG: " + qName ) ; m_curValue = new StringBuffer ( ) ; }
receive notification of the start of an element .
