xmlSharedStrings.go 1004 B

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