What gets converted
The converter keeps your XML intact. It places the whole file inside a fenced code block so Markdown renderers show it as code instead of trying to read the tags. It does not parse the XML, so it won't reformat it or pull text out of it.
| XML input | Converted? | Markdown output |
|---|---|---|
| The whole document | Yes | Wrapped in an ```xml fenced code block |
| Elements, attributes and namespaces | Yes | Kept exactly as written |
The <?xml ?> declaration |
Yes | Kept as the first line |
| CDATA sections, comments, processing instructions | Yes | Kept exactly as written |
| Your indentation and line breaks | Yes | Kept; nothing is re-indented |
| Blank lines and spaces before and after the document | Yes | Trimmed |
| Minified XML on one line | Partial | Stays on one line; it is not pretty-printed |
| Files saved in an encoding other than UTF-8 | Partial | Accented characters may show as � because the file is read as UTF-8 |
| Text content as Markdown paragraphs or headings | No | Stays inside the XML |
| Validation against a schema or DTD | No | The file is not checked, so broken XML is wrapped as well |