Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A document must contain exactly one root element. Line 2, column 0. #97

Closed
afalkov opened this issue Aug 8, 2017 · 2 comments
Closed

Comments

@afalkov
Copy link

afalkov commented Aug 8, 2017

Windows: basic usage example generates xlsx file that opens by Excel with error: Replaced Part: /xl/worksheets/sheet1.xml part with XML error. A document must contain exactly one root element. Line 2, column 0.

xlsx := excelize.NewFile()
xlsx.SetCellValue("Sheet1", "B2", 100)
err := xlsx.SaveAs("./Workbook.xlsx")

@xuri
Copy link
Member

xuri commented Aug 8, 2017

Check the Go version you are using. This library needs Go version 1.8 or later after fixed issue #32 for collecting XML all attributes. Relate issue #35, #39, #42 and #84.

@afalkov
Copy link
Author

afalkov commented Aug 8, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants