Xml to Md

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Markdown MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-markdown -- dnx GroupDocs.Markdown.Mcp --yes
Folders, licensing and more →

Use GroupDocs.Markdown to convert TXT, XML, and other text-based formats to clean Markdown.

Using static method

The simplest way to convert a text file:

using GroupDocs.Markdown;

// Set license (optional)
if (File.Exists("GroupDocs.Markdown.lic")) License.Set("GroupDocs.Markdown.lic");

// Convert XML to Markdown string
string markdown = MarkdownConverter.ToMarkdown("llms-tech.xml");

// Or save directly to a file
MarkdownConverter.ToFile("llms-tech.xml", "export-text-static.md");

llms-tech.xml is a sample file used in this example. Click here to download it.

Attention-based neural architecture that underpins most modern large language models.

2017

Attention Is All You Need


Language modeling

Machine translation
[TRUNCATED]

Download full output

Using instance API with options

For more control, use the instance API:

using GroupDocs.Markdown;

if (File.Exists("GroupDocs.Markdown.lic")) License.Set("GroupDocs.Markdown.lic");

using var converter = new MarkdownConverter("llms-tech.xml");
var options = new ConvertOptions
{
    HeadingLevelOffset = 1
};

converter.Convert("export-text-instance.md", options);

llms-tech.xml is a sample file used in this example. Click here to download it.

Attention-based neural architecture that underpins most modern large language models.

2017

Attention Is All You Need


Language modeling

Machine translation
[TRUNCATED]

Download full output

For the full list of input formats, see the supported formats page.