Xml to Md

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:

import com.groupdocs.markdown.*;

import java.io.File;

public class ExportTextStatic {

    public static void main(String[] args) {
        // Set license (optional)
        if (new File("GroupDocs.Markdown.lic").exists()) {
            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:

import com.groupdocs.markdown.*;

import java.io.File;

public class ExportTextInstance {

    public static void main(String[] args) {
        if (new File("GroupDocs.Markdown.lic").exists()) {
            License.set("GroupDocs.Markdown.lic");
        }

        try (MarkdownConverter converter = new MarkdownConverter("llms-tech.xml")) {
            DocumentConvertOptions options = new DocumentConvertOptions();
            options.setHeadingLevelOffset(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.

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.