Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ZipArchives = "49080126-0e18-4c2a-b176-c102e4b3760c"

[compat]
Tables = "1"
XML = "0.3.4"
XML = "0.3.5"
ZipArchives = "2"
julia = "1.7"

Expand Down
2 changes: 1 addition & 1 deletion src/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Base.iterate(itr::SheetRowStreamIterator, state::Union{Nothing, SheetRo
if nrows == 0
return nothing
end
@assert XML.depth(lznode) == 1 "Malformed Worksheet \"$(ws.name)\": unexpected node depth for sheetData node: $(XML.depth(lznode))."
@assert XML.depth(lznode) == 2 "Malformed Worksheet \"$(ws.name)\": unexpected node depth for sheetData node: $(XML.depth(lznode))."
break
end

Expand Down
2 changes: 1 addition & 1 deletion src/worksheet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function read_worksheet_dimension(xf::XLSXFile, relationship_id, name) :: Union{
while reader !== nothing # go next node
(sheet_row, state) = reader
if XML.nodetype(sheet_row) == XML.Element && XML.tag(sheet_row) == "dimension"
@assert XML.depth(sheet_row) == 1 "Malformed Worksheet \"$name\": unexpected node depth for dimension node: $(XML.depth(sheet_row))."
@assert XML.depth(sheet_row) == 2 "Malformed Worksheet \"$name\": unexpected node depth for dimension node: $(XML.depth(sheet_row))."
ref_str = XML.attributes(sheet_row)["ref"]
if is_valid_cellname(ref_str)
result = CellRange("$(ref_str):$(ref_str)")
Expand Down
Loading