[Solved] Error in writing sub-document content.xml

Discuss the word processor
Post Reply
comando
Posts: 2
Joined: Tue Feb 07, 2017 2:37 am

[Solved] Error in writing sub-document content.xml

Post by comando »

Hi everybody. I'm sorry to ask you it, but I really need your help with a file. I have read all this topic (and other tips from a lot of foruns), but I can't fix it. I don't know anything about XML. I have already tried to use notepad++, XML Viewer, XML Editor and so on. This file is extremely important for me, because it is from my job (from my boss). I would like to ask you some help. Could you please try to fix this content.xml ? Once more, my apologizes for having to ask you for all of you. I can't handle with it. Thank you very much.
PS: The text file is a SXW extension file. I had to use Winzip because this forum doesn't support this kind of file format to upload. So, please, extract the file to access the text file.
Attachments
2.jpg
4.jpg
Arquivo.zip
Note: it is a SXW format.
(55.02 KiB) Downloaded 87 times
OpenOffice 3.1 on Windows Vista
User avatar
robleyd
Moderator
Posts: 5500
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Error in writing sub-document content.xml

Post by robleyd »

@comando

Try these files - there is a repaired .sxw file which opened, but would not save, in my AOO 4.1.3; also a .odt version which is a copy from the .sxw into a new .odt file. The .odt has more pages ??

NOTE!! RENAME foo.zip to foo.sxw !! Don't try and unzip it.
Attachments
foo.odt
(66.42 KiB) Downloaded 94 times
foo.zip
Rename this to .sxw
(77.71 KiB) Downloaded 128 times
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.2.2; SlackBuild for 26.2.2 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
comando
Posts: 2
Joined: Tue Feb 07, 2017 2:37 am

Re: [Solved] Error in writing sub-document content.xml

Post by comando »

@robleyd

Thank you thank you a lot. You can't imagine how glad I am. This file was very important for me. Thank you very much. If you don't mind, could you please tell me how you did it? Did you just edit the file content.xml on notepad++ ? I tried to edit it, deleting the column 17429, but I got no success.
OpenOffice 3.1 on Windows Vista
User avatar
robleyd
Moderator
Posts: 5500
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Error in writing sub-document content.xml

Post by robleyd »

Glad I was able to help you :)

I used XML Copy Editor; there were a number of duplicate attributes in the file which I removed via Find and Replace until XML Copy Editor told me the document - content.xml - was well-formed. A sample of the type of error is shown in the uploaded image.
Attachments
xmlerror.jpg
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.2.2; SlackBuild for 26.2.2 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
John_Ha
Volunteer
Posts: 9604
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Error in writing sub-document content.xml

Post by John_Ha »

See [Tutorial] Format error discovered in sub-document for a full description of the method used.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Post Reply