How to embedded customize content in this format?

Talk about anything at all....

How to embedded customize content in this format?

Postby Har21t » Sat May 23, 2020 12:58 pm

Anyone has an idea about the customize content to content.xml is allowed or not. I am unable to find much information about this. Any help will be appreciated.

Regards,
Har21t
Last edited by MrProgrammer on Sat May 23, 2020 5:02 pm, edited 1 time in total.
Reason: Removed excess spacing in post
Har21t
 
Posts: 1
Joined: Sat May 23, 2020 12:43 pm

Re: How to embedded customize content in this format?

Postby Zizi64 » Sat May 23, 2020 4:02 pm

Anyone has an idea about the customize content to content.xml is allowed or not. I am unable to find much information about this. Any help will be appreciated.


Please give us some more details about this question.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9435
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to embedded customize content in this format?

Postby Lupp » Sat May 23, 2020 9:49 pm

... customize content to content.xml is allowed or not
It's allowed, of course, but manipulations may damage the file and foil correct loading.

Please find the specifications here: https://www.oasis-open.org/committees/t ... rev=office.

(My only experiences concerned repairs to files corrupted by tracking changes during a time of spooking through the MS universe, some additional repairs, and removing of content protection. Not much, but things that cannot be done in a different way. In the few mentioned cases I used Notepad++ and its XML-tools plugin.)
On Windows 10: LibreOffice 7.0 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
Lupp
Volunteer
 
Posts: 2896
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: How to embedded customize content in this format?

Postby Zizi64 » Sat May 23, 2020 10:01 pm

maybe it will help you:

https://pypi.org/project/odfpy/
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9435
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to embedded customize content in this format?

Postby John_Ha » Sun May 24, 2020 10:48 am

Do not touch content.xml.

If you want to create customised content use a template - that is what a template is designed to do. See the Writer Guide for information about templates.

As a new poster you will find much useful information in the Writer FAQ, the Writer Tutorials, the up to date AOO Writer for Students and the Writer User Guide. May I suggest you bookmark the pages.

Press F1 to access the Help screen and search for your problem

The chapter headings in the manual are:

1 - Introducing Writer
2 - Setting up Writer
3 - Working with Text
4 - Formatting Pages
5 - Printing, Exporting, Faxing and E-Mailing
6 - Introduction to Styles
7 - Working with Styles
8 - Working with Graphics
9 - Working with Tables
10 - Working with Templates
11 - Using Mail Merge
12 - Tables of Contents, Indexes and Bibliographies
13 - Working with Master Documents
14 - Working with Fields
15 - Using Forms in Writer
16 - Customizing Writer – Keyboard shortcuts.

When a pop-up window opens, click the Help button for extensive help on that function - it is often more comprehensive than the manual.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
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.
John_Ha
Volunteer
 
Posts: 7779
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: How to embed customized content in this format?

Postby MrProgrammer » Sun May 24, 2020 5:19 pm

Hi, and welcome to the forum.

Har21t wrote:Anyone has an idea about the customize content to content.xml is allowed or not.
File → Properties → Custom Properties

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800 on MacOS 10.14.6.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
MrProgrammer
Moderator
 
Posts: 3984
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: How to embedded customize content in this format?

Postby RoryOF » Sun May 24, 2020 5:23 pm

If you were to embed XML code in content.xml, content.xml should be run through an XML validator beforeclosing the OO archive; such manual embedding should be tried only on a copy on your file.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31236
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: How to embed customized content in this format?

Postby John_Ha » Sun May 24, 2020 6:05 pm

MrProgrammer wrote:File → Properties → Custom Properties

A quick check shows that data inserted by File > Properties > Custom Properties is stored in styles.xml in the ZIP wrapper.
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.
John_Ha
Volunteer
 
Posts: 7779
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: How to embedded customize content in this format?

Postby RoryOF » Sun May 24, 2020 6:08 pm

Just for clarification in case one ever needs this, John, do you know if all field data is contained in styles.xml
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31236
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests