LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Word-Processor File-Types for Scripting

Posted 05-29-2019 at 06:30 AM by Michael Uplawski
Updated 09-19-2020 at 01:46 AM by Michael Uplawski (SoftMaker Office 2021 has improved xml standard-compliance)

The Big Unification
Current Word-processors read and write different XML-based file-formats. The standards which are more or less implemented by these programs, are OOXML and/or OpenDocument. I write “more or less”, because for diverse reasons, Office-suites differ in the way that they compose documents of one certain type. The variations can result in a completely valid document or one that diverts from the standard and the existing schema-definitions (xsd). There is always the risk that
...
Attached Images
File Type: png sc_document.png (76.3 KB, 23 views)
File Type: png abiword_generated_ooxml.png (9.6 KB, 21 views)
Senior Member
Views 206 Comments 0 Michael Uplawski is offline
Old

XML - beautifying

Posted 04-02-2014 at 07:19 AM by sashi_hc
Updated 04-02-2014 at 10:05 AM by sashi_hc

You want to make your XML more readable
You have just extracted an XML from a source and it is all un-indented and so not very readable. That happens in my workplace where a single XML can be many MBs in size.

Using xmllint
xmllint --format <your_existing_xml_file_name> > new_xml_file_name

If you do not have xmllint installed, you have the perl method. This is slower, but works the same. This is not my code but see the author info. Works good.
...
LQ Newbie
Posted in Uncategorized
Views 987 Comments 0 sashi_hc is offline

  



All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration