PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit OpenOffice.org Datei



monkey
26.12.05, 20:51
Ich kann ein mit OO.org erstelltes Tabellendocument nicht mehr öffnen. Das Dokument hat sich vorher ohne Probleme öffnen, bearbeiten und wieder abspeichern lassen. Nach einem erneuten Versuch es zu öffnen erhalte ich folgende Fehlermeldung:


Leseproblem.
Formatfehler in Teildokument content.xml an Position 2,5966 (Zeile,Spalte) in der Datei entdeckt.

Das Document ist einmal auf CD-RW und einmal auf Festplatte vorhanden. Es ergibt sich aber jeweils die gleiche Fehlermeldung beim Öffnen. Die Dateiendung lautet .ods und ich habe es auch schon mit koffice und gnumeric versucht, aber leider vergeblich. (nicht unterstütztes Dateiformat)
Ich verwende OpenOffice.org in der Version 1.9.79-9 mit SuSE9.3.
Das Dokument ist betrieblich sehr wichtig für mich.
Gibt es eine Möglichkeit da noch etwas zu retten.

mfg Guido

hp_tux
26.12.05, 21:01
Hallo,

hmm, ich würde es mal mit der aktuellen, stabilen Version von OOo versuchen (AFAIK mittlerweile 2.0.1). Ansonsten kannst Du die Datei ja auch mal mit einem normalen Editor öffnen, wobei aber wohl gewisse XML-Kenntnisse vonnöten sind.

Gruß

hp_tux

monkey
26.12.05, 21:23
Wenn ich versuche die Datei mit KXML Editor zu öffnen, erhalte ich:

error occurred while parsing element in Zeile 1, Spalte 1
und bei KVim gehts in Zeile 2 nur bis:

2,916-871

Ich werd's dann mal mit ner neuen OOo Version versuchen, aber das dauert, bei uns gibt's kein DSL.:mad:

monkey
28.12.05, 19:13
Ich habe die OOo Version 2.0.1 fehlermeldungsfrei installiert.
Aber beim Öffnen der Datei gab's wieder die gleiche Fehlermeldung.

Habe ich noch Möglichkeiten da etwas zu retten?
So sieht die Datei mit firefox aus:

XML-Verarbeitungsfehler: Doppeltes Attribut
Adresse: file:///home/guido/Temp/UEBERSTUNDENLISTE/content.xml
Zeile Nr. 2, Spalte 5967:<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1. 0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" office:version="1.0"><office:scripts/><office:font-face-decls><style:font-face style:name="Albany AMT1" svg:font-family="&apos;Albany AMT&apos;" style:font-pitch="variable"/><style:font-face style:name="Albany AMT" svg:font-family="&apos;Albany AMT&apos;" style:font-family-generic="swiss" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="co1" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="2.267cm"/></style:style><style:style style:name="co2" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.173cm"/></style:style><style:style style:name="co3" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.365cm"/></style:style><style:style style:name="co4" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.856cm"/></style:style><style:style style:name="co5" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.118cm"/></style:style><style:style style:name="co6" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.729cm"/></style:style><style:style style:name="co7" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.801cm"/></style:style><style:style style:name="co8" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.692cm"/></style:style><style:style style:name="co9" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="2.429cm"/></style:style><style:style style:name="co10" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="5.435cm"/></style:style><style:style style:name="co11" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="2.088cm"/></style:style><style:style style:name="co12" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="2.706cm"/></style:style><style:style style:name="co13" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="2.117cm"/></style:style><style:style style:name="co14" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="2.383cm"/></style:style><style:style style:name="co15" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.983cm"/></style:style><style:style style:name="co16" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="1.884cm"/></style:style><style:style style:name="co17" style:family="table-column"><style:table-column-properties fo:break-before="auto" style:column-width="5.406cm"/></style:style><style:style style:name="ro1" style:family="table-row"><style:table-row-properties style:row-height="0.841cm" fo:break-before="auto" style:use-optimal-row-height="true"/></style:style><style:style style:name="ro2" style:family="table-row"><style:table-row-properties style:row-height="0.427cm" fo:break-before="auto" style:use-optimal-row-height="true"/></style:style><style:style style:name="ro3" style:family="table-row"><style:table-row-properties style:row-height="0.446cm" fo:break-before="auto" style:use-optimal-row-height="true"/></style:style><style:style style:name="ro4" style:family="table-row"><style:table-row-properties style:row-height="0.512cm" fo:break-before="auto" style:use-optimal-row-height="true"/></style:style><style:style style:name="ta1" style:family="table" style:master-page-name="Default"><style:table-properties table:display="true" style:writing-mode="lr-tb"/></style:style><number:number-style style:name="N1"><number:number number:decimal-places="0" number:min-integer-digits="1"/></number:number-style><number:number-style style:name="N2"><number:number number:decimal-places="2" number:min-integer-digits="1"/></number:number-style><number:date-style style:name="N37" number:automatic-order="true"><number:day number:style="long"/><number:text>.</number:text><number:month number:style="long"/><number:text>.</number:text><number:year/></number:date-style><number:text-style style:name="N100"><number:text-content/></number:text-style><style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default"><style:table-cell-properties xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:font-size="8pt" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:font-style="normal" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:text-shadow="none" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:font-weight="normal"/><style:text-properties style:use-window-font-color="true" style:text-outline="false" style:text-line-through-style="none" style:text-underline-style="none" style:text-underline-mode="continuous" style:text-line-through-mode="continuous" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="normal" style:text-emphasize="none" style:font-relief="none"/></style:style><style:style style:name="ce2" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"><style:table-cell-properties xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:border-bottom="0.002cm solid #000000" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:border-left="0.002cm solid #000000" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:border-right="none" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:border-top="none"/><style:text-properties style:use-window-font-color="true" style:text-outline="false" style:text-line-through-style="none" style:text-underline-style="none" style:text-underline-mode="continuous" style:text-line-through-mode="continuous" style:font-size-asian="12pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-size-complex="12pt" style:font-style-complex="normal" style:font-weight-complex="normal" style:text-emphasize="none" style:font-relief="none"/></style:style><style:style style:name="ce3" style:family="table-cell" style:parent-style-name="Default"><style:table-cell-properties xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" fo:font-size="8pt"/></style:style><style:style style:name="ce4" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N100"><style:

mfg
Guido

steve-e
29.12.05, 11:22
Entpacke die Datei mit unzip und zieh dir den Inhalt mit einem normalen Texteditor aus dem XML-Files, den du brauchst.

dipesh
26.01.06, 14:03
Wie steve-e so richtig schrieb;
1. Entpacken der *.odt-Datei mit unzip
2. Öffenen der content.xml Datei mittels eines Texteditors (nicht KXML oder einem anderen XML-Editor, da dein Dokument kein wellformed XML mehr ist und die alle das öffnen verweigern dürften).
3. In die Zeile 2 und die Spalte 5966 gehen.
4. Dort wirst du ein Attribut der Form Schluesselname="Wert" finden. Das Problem warum die Datei nicht geöffnet werden kann ist, dass dieser Schluesselname innerhalb des gleichen Tags mehr als 1x vorkommt. Also einfach Schluesselname="Wert" (also beides, den Schluesselnamen und den Wert inklusive der "") loeschen oder einfach den Schluesselnamen ändern (z.B. vonb Schluesselname zu SchluesselnameIgnoreMe) und speichern.
5. Die content.xml entweder wieder zurück in das Archiv schieben und die vorherige Version mit der geänderten ersetzen (du könntest nun auch einfach die content.xml in oo2.org importieren, wobei allerdings deine Styles verloren gehen würden) und nun sollte es gehen das Teil zu öffnen.
6. Zukünftig die Datei mit der stabilen oo2.org-Version (oder KWord 1.5) bearbeiten ;)