[linux-support] Fwd: korruptes XML-Problem

Christian Fahrni lists at fahrni.be
Tue Jul 30 13:09:23 CEST 2019


---------- Forwarded message ---------
Von: Christian Fahrni <lists at fahrni.be>
Date: Di., 30. Juli 2019 um 11:43 Uhr
Subject: Re: [linux-support] korruptes XML-Problem
To: Theo Schmidt <sus2006 at bluewin.ch>


Hoi Theo

Im Check vom Notepad++ war der Fehler schnell ersichtlich und konnte dann
auch gefixt werden.

Mein Vorgehen:

   - Öffnen mit Notepad++ und erstmal richtig formatieren (Plugins ->
   XML-Tools -> Pretty Print (mit Line-Breaks)
   - Syntax Check (Plugins -> XML-Tools -> Validate now)
   - Ergibt Fehler: XML-Parsing error at line 44: Attribute office:name
   redefined
   - Und tatsächlich, im Style bei Line 44 ist das Attribut "office:name"
   zwei mal drin, das dürfte nur einmal vorkommen

<style:style *office:name*="__Annotation__5022_660924023111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
o*ffice:name*="__Annotation__9260_6609240231111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
style:name="P1" style:family="paragraph" style:parent-style-name="p">
<style:paragraph-properties fo:margin-top="0.423cm" fo:margin-bottom="0cm"/>
</style:style>

Ich habe jetzt einfach mal den Style dupliziert und je mit einem der beiden
office:name Attribute versehen:

<style:style
office:name="__Annotation__5022_660924023111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
style:name="P1" style:family="paragraph" style:parent-style-name="p">
<style:paragraph-properties fo:margin-top="0.423cm" fo:margin-bottom="0cm"/>
</style:style>
<style:style
office:name="__Annotation__9260_6609240231111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
style:name="P1" style:family="paragraph" style:parent-style-name="p">
<style:paragraph-properties fo:margin-top="0.423cm" fo:margin-bottom="0cm"/>
</style:style>

Reicht dir das als Erklärung? Anschliessend konnte ich bei mir das Dokument
wieder öffnen.
Schau doch mal, ob das Dokument für dich so wieder in Ordnung ist.

ä Gruess
Chrigu


Am Di., 30. Juli 2019 um 08:42 Uhr schrieb Theo Schmidt <sus2006 at bluewin.ch
>:

> Hoi Chrigu, vielen Dank!
>
> Ich schicke es als ODT, da die content.xml darin entpackt 2.5 MB gross
> ist. Das Probem startet ab Zeichen 7150 in der zweiten Zeile (Es gibt
> nur zwei Zeilen ohne automatischen Umbruch). Ich habe versucht von dort
> an zu "reparieren", aber LO/OO gibt dann keine Fehlerstelle mehr an,
> offeriert zu reparieren, kann es abar nicht, während Firefox immer neue
> Fehler im XML angibt, aber auch wenn diese alle "behoben" sind, das
> rekonstruierte ODT sich immer noch nicht öffnen lässt.
>
> Liebe Grüsse,
> Theo
>
> Am 30.07.2019 um 08:16 schrieb Christian Fahrni:
> > Hey Theo
> >
> > Kannst du mir das korrupte XML-File (oder ODT) mal schicken? Dann schaue
> > ich mal rein.
> > Ich hatte auch schon mal so ein Fall und musste auch XML-Tags
> > umschreiben damit das wieder funktioniert hat.
> >
> > Gruess
> > Chrigu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillists.lugbe.ch/pipermail/linux-support/attachments/20190730/383434a3/attachment.html>


More information about the Linux-support mailing list