File format · .s4w
S4W File Repair: S4/TEXT and i4i Tagless Editor Files Explained
What .s4w files are, how i4i S4/TEXT stores structured XML inside Word documents, why they fail to open, and how our engineers repair them.
The .s4w extension belongs to S4/TEXT and its Tagless Editor, a structured authoring system from the Canadian software company i4i. Large documentation operations used it from the late 1990s onward to write SGML and XML content inside Microsoft Word, with the authors never seeing a tag. Many of those archives survive, and many no longer open. We repair damaged S4W files and recover the structured content inside them.
What is an S4W file?
An S4W file is a word processing document created by S4/TEXT, a product of i4i, formally Infrastructures for Information Inc., a Toronto company founded in the mid-1990s. S4/TEXT ran as an add-in to Microsoft Word and turned it into a structured editor. Writers kept their familiar word processor; the software quietly enforced a document structure defined in SGML or XML.
i4i called the approach tagless editing. Word styles and on-screen layout stood in for visible tags, showing each author where they sat in the hierarchy. The combination suited industries with strict documentation rules, including aerospace, defense, pharmaceutical, and government publishing.
In the files our engineers handle, S4W documents are classic Word binary files in the OLE compound document container, the same wrapper as .doc. S4/TEXT structural data is stored alongside the text. i4i's own documentation, where it survives, remains the authoritative reference for the exact internal layout.
Inside an S4W file
Because the wrapper is the OLE compound container, a healthy S4W file carries the familiar compound document signature, D0 CF 11 E0 A1 B1 1A E1, at byte zero. Inside that container sit the streams Word expects, plus the layer S4/TEXT uses to map visible text onto markup. Element boundaries, attributes, and cross-references live in that layer. The document type rules themselves usually live outside the file, in separate definition files built from a DTD.
This design has two practical consequences. First, a file can display perfectly as text while its structural layer is broken or missing, because Word reads only the content streams. Second, a document rescued without its rule files and editing environment will show text but never structure. The format has no IANA-registered MIME type, and the extension is rare enough that most modern applications simply decline it.
The patent case that ended the era
In 2007, i4i sued Microsoft, arguing that Word's custom XML feature infringed its patent on separating a document's architecture from its content. A jury agreed in 2009, Microsoft paid 290 million dollars, and Word lost the custom XML editing feature through an update. The United States Supreme Court upheld the verdict in 2011, and the case became a landmark of United States patent law.
For S4W archives, the effect was simpler: the era of editing live XML inside Word ended, vendors and customers moved on, and tooling quietly froze.
Why do S4W files stop opening?
Most S4W failures we see fall into four groups. The compound document container itself can be damaged by an interrupted save, a copy that died mid-transfer, or a failing disk. Word then rejects the file outright, because the structure that locates every stream is broken at the start.
Truncation is common in old backups and decommissioned servers. A file cut short loses whatever streams sat at the end, and the S4/TEXT layer is often among them. Decayed tapes and optical discs from the late 1990s produce much the same result.
Then there is the environment problem. S4/TEXT was a Word add-in of its day, and current versions of Word, 64-bit Office, and locked-down security policy will not run it. A document can be fully intact yet show no structure, because the software that reads that structure is gone.
Finally, the structural layer can drift out of step with the text after a crash or an aborted save. Validation then fails even though every word survives.
How much of a damaged S4W file can be recovered?
Text is the most recoverable part. Where the container retains any life, our engineers can usually extract body text, tables, lists, and embedded images.
Structure depends on the state of the S4/TEXT layer. If that layer is intact, we can return a document that validates against the original rules. If it is destroyed, the text can still be recovered and re-tagged, and surviving styles often let us infer element boundaries when the definition files are lost.
Deliverables are flexible: a repaired S4W file, a clean .doc or .docx, plain text, structured XML, or SGML where the target system still expects it.
How does S4W recovery work?
Recovery begins with a free evaluation. You upload the damaged file, and our engineers examine it at the container level to see which streams survive. You then receive a fixed quote before any paid work starts. If we cannot recover your data, there is no charge.
The work itself moves from the outside in. We stabilize the compound container far enough to read its streams, extract the Word content, then repair or rebuild the S4/TEXT structural layer. Finally we validate the result against the document rules where those are available, and return the file in the form you need.
Frequently asked questions
Can Microsoft Word open an S4W file?
Often, partially. Because the wrapper is the classic Word binary format, renaming a healthy file to .doc will usually reveal its text. Word cannot show the S4/TEXT layer, and a genuinely damaged file may still refuse to open. Treat this as a quick diagnostic, never as a repair.
Is S4/TEXT still sold or supported?
We know of no current sales or support for the product line. i4i's own documentation, where it survives, is the authoritative source on the format. That silence is a large part of why these archives get stranded.
Is an S4W file the same as an SGML or XML file?
No. The content is governed by SGML or XML rules, but it is stored inside a Word binary document. Producing real XML requires a conversion step, which is part of what our service does.
What should I send for a free evaluation?
The damaged .s4w file alone is enough to begin. If you can also supply the structure definition files, a known-good sample document, or the original backup, the odds of full structural recovery improve.
Can every damaged S4W file be recovered?
No. A file overwritten on disk, or a backup truncated before the content streams, can lose data permanently. The free evaluation exists so you know what is recoverable before spending anything.
If an S4W file will not open, or opens without the structure you need, send it to us for a free, no-obligation evaluation. Our engineers will report what can be saved, quote a fixed price, and charge nothing if recovery proves impossible.
Send us your .s4w file for a free evaluation
Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.
Start a free evaluation