private void ReadSharedStrings() { if (File.Exists(temp_path + "\\xl\\sharedStrings.xml")) { xml_shared_strings.LoadDocument(temp_path + "\\xl\\sharedStrings.xml"); foreach (XmlElement el in xml_shared_strings.XmlElements) { if (el.Name == "sst") { foreach (XmlNode si_node in el.ChildNodes) { if (si_node.Name == "si") { foreach (XmlNode value_node in si_node.ChildNodes) { if (value_node.Name == "t") { shared_strings.Add(shared_strings.Count, value_node.InnerText); } } } } } } } else { throw new FastXcelException("Can't find file \\xl\\sharedStrings.xml. Document seems to be corrupted."); } }
private void ProcessWorkbook() { if (File.Exists(temp_path + "\\xl\\workbook.xml")) { xml_workbook.LoadDocument(temp_path + "\\xl\\workbook.xml"); } else { throw new FastXcelException("Can't find file \\xl\\workbook.xml. Document seems to be corrupted."); } }
private void ProcessDocumentRelationships() { if (File.Exists(temp_path + "\\xl\\_rels\\workbook.xml.rels")) { xml_wb_rels.LoadDocument(temp_path + "\\xl\\_rels\\workbook.xml.rels"); } else { throw new FastXcelException("Can't find file \\xl\\_rels\\workbook.xml.rels. Document seems to be corrupted."); } }