This is quite a mess:
Found Expected
</table:table-cell< </table:table-cell> Bad end of tag
table:formula= …" table:formula="…" Missing quote in attribute value
<vable:table-cell …> <table:table-cell …> Misspelled tag
However after fixing those easy problems, numerous errors remain:
Opening and ending tag mismatch: p line 2 and table-cell
fice:value-type="float" office:value="75"><text:p>75>/text:p></table:table-cell>
Opening and ending tag mismatch: table-cell line 2 and table-row
table:style-name="ce738" table:number-columns-repeated="11"/></table:table-row>
Opening and ending tag mismatch: table-row line 2 and table
:table-cell table:number-columns-repeated="48"/></table:table-row></table:table>
Opening and ending tag mismatch: table line 2 and spreadsheet
/table:sort></table:database-range></table:database-ranges></office:spreadsheet>
Opening and ending tag mismatch: spreadsheet line 2 and body
table:database-range></table:database-ranges></office:spreadsheet></office:body>
Opening and ending tag mismatch: body line 2 and document-content
ble:database-ranges></office:spreadsheet></office:body></office:document-content
Premature end of data in tag document-content line 2
A tag mismatch means the tags are not nested properly, for example:
Right Wrong Wrong
<a> <a> <a>
<b> <b> <b>
</b> </a>
</a> </b> </a>
Since your file has over 5 million tags, it is impractical for me to manually examine them to determine how to fix the tag mismatch problems. I know of no programs which could do that automatically. Some of the mismatches could be simple spelling errors, like
vable (problem #3), though I think that is unlikely. Restore your file from a backup. Your operating system may be making backups of files each time they're changed. If not, this is surely a feature all modern operating systems can provide.
robleyd wrote: ↑Tue Jul 26, 2022 5:39 am
Tried, but the content.xml is too big - over 155 Mb - for any of my text editors to open.
On my Mac I use tool
xmllint to analyze the XML. It runs in a few seconds. I can open the XML in TextEdit to view the details of the analysis, though opening the file takes it about a minute and a half. I used
sed to fix the first three problems. It runs in a few seconds.
TextEdit,
xmllint, and
sed are all included with MacOS.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).