void FullItemWriteCSV(XmlTextReader reader, StreamWriter fileWriter) { // string strAttrID; // string strAttrValue; if (reader.MoveToFirstAttribute() == true) { string[] arrayColumn = new string[m_Index.Get()]; do { if (m_htAttrFilter[reader.Name] != null) { int nCol = (int)m_htAttrFilter[reader.Name]; if (reader.Name == "name" || reader.Name == "desc") { string strI18Nid = reader.Value.Substring(4); string strI18NSolved; if (m_htGunzString[strI18Nid] == null) { strI18NSolved = "NO DATA"; } else { strI18NSolved = m_htGunzString[strI18Nid].ToString(); } arrayColumn[nCol] = strI18NSolved; } else { arrayColumn[nCol] = reader.Value; } } } while (reader.MoveToNextAttribute() == true); string strOutput = ""; for (int i = 0; i < m_Index.Get(); i++) { strOutput += arrayColumn[i]; if (i < m_Index.Get()) { strOutput += ", "; } } fileWriter.WriteLine(strOutput); } }