xmlSharedStrings.go 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // Some code of this file reference tealeg/xlsx.
  2. package excelize
  3. import "encoding/xml"
  4. // xlsxSST directly maps the sst element from the namespace
  5. // http://schemas.openxmlformats.org/spreadsheetml/2006/main currently
  6. // I have not checked this for completeness - it does as much as I need.
  7. type xlsxSST struct {
  8. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main sst"`
  9. Count int `xml:"count,attr"`
  10. UniqueCount int `xml:"uniqueCount,attr"`
  11. SI []xlsxSI `xml:"si"`
  12. }
  13. // xlsxSI directly maps the si element from the namespace
  14. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  15. // currently I have not checked this for completeness - it does as
  16. // much as I need.
  17. type xlsxSI struct {
  18. T string `xml:"t"`
  19. R []xlsxR `xml:"r"`
  20. }
  21. // xlsxR directly maps the r element from the namespace
  22. // http://schemas.openxmlformats.org/spreadsheetml/2006/main -
  23. // currently I have not checked this for completeness - it does as
  24. // much as I need.
  25. type xlsxR struct {
  26. T string `xml:"t"`
  27. }