15 September 2026
Converting OpenOffice SXW to Markdown: Unpacking Pre-ODF XML Document Archives
In 2000, Sun Microsystems acquired StarDivision and open-sourced the StarOffice suite as OpenOffice.org. Before the International Organization for Standardization (ISO) and OASIS standardized the OpenDocument Format (.odt) in 2005, OpenOffice.org 1.0 and 1.1 saved word processing documents using the .sxw extension.
SXW proved that office documents could abandon opaque, proprietary binary OLE containers (like Microsoft Word .doc) in favor of human-inspectable XML wrapped inside a standard ZIP package.
However, modern office suites and mobile devices no longer provide reliable backwards compatibility for the pre-ODF Sun XML schema used in SXW files.
This technical guide explores the package hierarchy of .sxw archives, contrasts its XML syntax with modern ODF, and demonstrates how convrtr's SXW to Markdown converter transforms vintage StarOffice and OpenOffice documents into portable GitHub Flavored Markdown entirely inside your browser.
The SXW ZIP Package Hierarchy
An .sxw document is a PKZIP archive containing structured XML streams:
mimetype: Uncompressed text file declaringapplication/vnd.sun.xml.writer.content.xml: The core document tree holding headings, paragraphs, tables, lists, and character styles.meta.xml: Document metadata adhering to the Dublin Core metadata specification (title, author, creation timestamp, summary).styles.xml: Page layout, margins, font declarations, and paragraph styles.settings.xml: View zoom levels, cursor position, and printer preferences.
convrtr extracts content.xml and meta.xml directly into memory using client-side JavaScript, bypassing file-system write overhead.
The Sun XML Document Schema
While modern OpenDocument Text (.odt) uses the urn:oasis:names:tc:opendocument:xmlns:text:1.0 namespace, SXW files use the original Sun namespace:
<office:document-content
xmlns:office="http://openoffice.org/2000/office"
xmlns:text="http://openoffice.org/2000/text"
xmlns:table="http://openoffice.org/2000/table">
<office:body>
<text:h text:level="1">Executive Summary</text:h>
<text:p>OpenOffice pioneered open document formats.</text:p>
</office:body>
</office:document-content>
Key XML structures include:
- Headings:
<text:h text:level="N">tags, where $N$ maps directly to Markdown heading levels (#,##,###). - Paragraphs:
<text:p>tags containing text runs, spaces (<text:s text:c="N"/>), and hyperlinks (<text:a xlink:href="...">). - Lists:
<text:unordered-list>and<text:ordered-list>containing nested<text:list-item>elements. - Tables:
<table:table>,<table:table-row>, and<table:table-cell>grids.
Transformation to GitHub Flavored Markdown
convrtr's extraction engine walks the XML node graph and translates each block element into standard GitHub Flavored Markdown:
- Headings are converted with appropriate
#prefixes. - Tables are formatted into Markdown pipe tables with aligned header rows (
| Header |and| --- |). - Bulleted and numbered lists are preserved with indentation hierarchy.
- Dublin Core metadata is formatted into frontmatter at the top of the document.
Because all processing runs client-side in browser memory, your confidential business archives and legal records remain 100% private.
Related reading
Converting Emacs Org Mode to Markdown: Outlines, Tables, and Checklists
Explore the syntax and semantics of Emacs Org Mode (.org). Learn how asterisk headings, TODO states, priority tags, Org Calc tables, and code blocks translate to GitHub Flavored Markdown.
Converting FictionBook 2.0 (FB2) E-Books to Markdown: XML Structure and Semantics
Explore the FictionBook 2.0 (.fb2) architecture. Learn how semantic XML e-book structures, epigraphs, poems, footnotes, and metadata are converted into clean GitHub Flavored Markdown.
Converting AbiWord (.abw, .zabw) to Markdown: Open-Source Word Processing Recovery
Examine AbiWord's native AWML XML document architecture. Learn how Dublin Core metadata, 2D table grids, styled character spans, GZIP compression, and base64 illustrations convert into clean Markdown.
Converting Hangul Word Processor (HWP) to Markdown: OLE CFB & Deflate Forensics
Unpack Hancom Hangul HWP 5.x compound documents. Discover how OLE 2.0 CFB directory tables, Deflate stream decompression, and HWPTAG_PARA_TEXT record parsers extract clean Markdown in browser memory.
Converting ClarisWorks and AppleWorks CWK to Markdown: Recovering Vintage Mac Documents
Learn how to extract text, paragraphs, and headings from vintage ClarisWorks and AppleWorks (.cwk) MacBinary files into clean GitHub Flavored Markdown with 100% private in-browser decoding.
Converting StarOffice & StarWriter (SDW) to Markdown: OLE Compound Binary Forensics
Recover text, headings, bullet lists, and metadata from vintage StarOffice 3.x–5.x (.sdw) word processing documents. Learn how OLE CFB streams unpack to GitHub Flavored Markdown.
Converting Compressed AbiWord (ZABW) to Markdown: Gzip XML Document Extraction
Learn how AbiWord's compressed .zabw document format packages rich word processing XML inside Gzip containers, and how to convert it to clean GitHub Flavored Markdown.
Converting Apple RTFD Bundles to Markdown: Rich Text & Attachment Extraction
Learn how Apple macOS RTFD compound packages bundle Rich Text Format documents with graphic attachments, and how to convert them into GitHub Flavored Markdown 100% offline.