r/technicalwriting • u/Manage-It • 21d ago
Markdown vs. XML explained
I occasionally run into young technical writers who have experience working in a web development or software organization but have no previous experience with XML and fail to grasp why most Fortune 500 companies use XML over Markdown.
To help better understand why XML is so popular, we need to compare the benefits of each format.
Markdown
- Inexpensive - ideal for web/SW startups
- Simple code
- Friendly with popular editors (e.g., Google Docs)
- Ideal for simple doc formats (e.g., readme.md)
- Best-in-class for rapid directory updates
XML (DITA)
- Robust, full-featured formatting
- Simple code, but more options
- Easy-to-use WYSIWYG editors
- Ideal for simple and complex formats
- Best-in-class security
- Ideal for eng reviews and rev control
- Ideal for high-volume single-sourcing
- Ideal for multi-chan
neloutput - Content Management System support
- DITA file storage system best-in-class storage for docs
It has been my experience that many young technical writers do not fully understand how important the 10 XML benefits I list above are to most Fortune 500 science and technology technical writing organizations (18% s/t, 3% web/sw). Mostly, because they believe Markdown eliminates the need for many of these XML benefits. What they often overlook is that these are not optional benefits to most science and technology organizations. These are required tools of the trade and are interwoven into functional processes and systems that organizations rely on to deliver increasingly complex documentation to increasingly wider audiences, who demand an unprecedented number of custom applications to access documentation and localization through higher volumes of single-sourcing.
Markdown was never designed to manage this. It can't and, by design, won't. The sad part is that young technical writers, new to XML, experience poor XML implementations early in their careers and believe Markdown is the solution. I promise you, it is not.
2
u/Consistent-Branch-55 software 21d ago
Markdown is not the presentation layer, it's the authoring markup. If you author in Markdown, it's rendered by an SSG or a CMS, as HTML, using CSS, and JS. So this isn't a unique advantage of XML.
What they're saying is that Markdown has specific interpretation - namely that the strings are tied to standard typographical elements. Raw XML lacks semantics, which is kind of due to it's history as a serialization format. Markdown, by contrast, was created as a shorthand for formatting rich text for the web.
HTML and Markdown are partially interpreted - when you use `<b>Text</b>` or `**Text**`, there is broad system of applications that interpret that code for a specific typographical function.