Try XML Tools. Plugins -> XML Tools -> Pretty Print (libXML) or (XML only - with line breaks Ctrl + Alt + Shift + B)

You may need to install XML Tools using your plugin manager in order to get this option in your menu.

In my experience, libXML gives nice output but only if the file is 100% correctly formed.

Answer from erjiang on Stack Overflow
๐ŸŒ
Wondershare PDF
pdf.wondershare.com โ€บ home โ€บ office converter โ€บ 3 steps to convert xml to text easily
Take 3 Steps to Convert XML to Text Easily
January 6, 2026 - This section covers how to convert XML to text in 3 easy steps: In this first step, double-click your XML file to open it via your default browser on the computer. Alternatively, you may right-click the file, so you load it using Notepad or Microsoft Word.
๐ŸŒ
Quora
quora.com โ€บ How-can-I-convert-XML-files-to-text-files
How to convert XML files to text files - Quora
Open the XML files in various text editors such as Sublime Text or Notepad++. Completely delete the tags to separate the data to transform into text files. Afterwards, save the file with a โ€œ.txt extensionโ€ using the editor.
๐ŸŒ
XML to TXT Converter
marketplace.microsoft.com โ€บ en-us โ€บ product โ€บ saas โ€บ bitrecover.xml-to-txt
XML to TXT Converter
The given list in the naming options, include all the properties from your own data such as date, time, subject, month, year, etc. this feature helps you to relocate your output data file easily. Advanced Mode Options XML to Notepad converter offers you to use multiple advanced modes to batch transform XML to TXT format with compatibility.
๐ŸŒ
Online XML Tools
onlinexmltools.com โ€บ convert-xml-to-text
Extract Plain Text from XML - Online XML Tools
Free online XML to plain text converter. Just load your XML and it will automatically get converted to simple text. There are no ads, popups or nonsense, just an awesome XML text extractor. Load XML, get text.
๐ŸŒ
Online String Tools
onlinestringtools.com โ€บ convert-xml-to-string
Convert XML to a String โ€“ Online String Tools
Free online XML to string converter. Just load your XML and it will automatically get converted to a string. There are no intrusive ads, popups or nonsense, just an XML string extractor. Load XML, get a string.
Top answer
1 of 4
4

Going from XML to text smells like a job for XSLT - it's a XML-based transformation language that can take an XML input and convert it to anything text-based on the output side.

You can read up on XSLT on lots of websites - one of the better tutorials in the W3Schools one.

Since you didn't post any sample XML, I have no clue what your XML looks like, and also no idea what your output should be. But assuming it would look something like:

<?xml version="1.0" encoding="utf-8"?>
<root>
  <title>Some Title</title>
  <description>Some description</description>
  <keywords>
    <keyword>Keyword1</keyword>
    <keyword>Keyword2</keyword>
    <keyword>Keyword3</keyword>
    <keyword>Keyword4</keyword>
   </keywords> 
</root>

you could easily write a XSLT transformation to turn that into

YourTextFile.txt

Some Title
Some Description
Keyword1,Keyword2,Keyword3,Keyword4

or whatever other format you are looking for.

2 of 4
2

My suggestion would be to use Python. You can use the interpreter to run the pattern while you are setting it up, command line goes along way in setting this sort of thing up properly. Assuming the xml is valid this should allow you the most flexibility with the least hassle.

so assuming the following xml format:

<root>
  <title>Document Title</title>
  <content>Some document content.</content>
  <keywords>test, document, keyword</keywords>
</root>

and assuming the output of each document should be:

Document Title

Some document content.

test, document, keyword

The python code might look something like:

import sys
import os
from xml.etree.ElementTree import ElementTree

def Readthexml(f):
    """Read the file from the argument list and dump the title contents and keywords"""
    xcontent = ElementTree()
    xcontent.parse(f)
    doc = [xcontent.find("title").text, xcontent.find("content").text, xcontent.find("keywords").text]
    out = open(f + ".txt", "w")
    out.write("\n\n".join(doc))
    return True

def main(argv=None):
    if argv is None:
        argv = sys.argv
        args = argv[1:]
        for arg in args:
            if os.path.exists(arg):
                Readthexml(arg)

if __name__ == "__main__":
    main()

from which you could generate a batch file to update files regularly (assuming it is a windows environment though python works in whatever).

Find elsewhere
๐ŸŒ
Text Compare
textcompare.io โ€บ xml-to-text-converter
Xml to Text Converter Online
An XML to Text Converter that transforms data encoded in XML format into plain text.
๐ŸŒ
SysTools Group
systoolsgroup.com โ€บ home โ€บ how to convert xml to txt files โ€“ free & best methods
3 Best Ways to Convert XML to TXT / Text Files in Bulk Securely
October 9, 2025 - In this way, you can read or view the Text-focused content without complex tags or any formatting. Here are the steps to convert XML to plain Text format: Open the XML in any Text Editor like Notepad.
๐ŸŒ
Cloudzenia
cloudzenia.com โ€บ tools โ€บ xml-to-text-converter
XML to Text Converter - Convert XML Files to Plain Text Online
Convert XML files to plain text quickly with online XML to Text Converter. Simplify data extraction and enhance readability in just a few clicks - CloudZenia
๐ŸŒ
How to do in Java
howtodoinjava.com โ€บ home โ€บ java xml โ€บ java convert xml to string โ€“ write xml dom to a file
Java Convert XML to String - Write XML Dom to a File
March 9, 2023 - public class ConvertStringToXML ... doc = convertStringToXMLDocument(xmlStr); //Convert XML to String String outputXML = convertXmlDomToString(doc); System.out.println("Output string : " + outputXML); //Write XML to File ...
๐ŸŒ
GroupDocs
products.groupdocs.app โ€บ groupdocs products โ€บ conversion app โ€บ convert xml to txt
Online XML to TXT converter | Free GroupDocs Apps
The format contains only raw text ... like ASCII or UTF-8 for multilingual text. ... Click inside the file drop area to upload XML file or drag & drop XML file. ... Click on Convert button....
Published ย  2 weeks ago
๐ŸŒ
Quora
quora.com โ€บ How-can-I-convert-an-XML-file-into-a-JSON-format-using-Notepad-or-another-free-software-program
How to convert an XML file into a JSON format using Notepad++ or another free software program - Quora
Answer: There are capabilities of XML which cannot be represented in JSON format. So only a subset of XML documents can be converted to JSON format. Remember that JSON is simply a subset of the JavaScript/ECMAScript syntax for an object. Its purpose is basically to transport the information cont...
๐ŸŒ
TMS Outsource
tms-outsource.com โ€บ home โ€บ how to format xml in notepad++ quickly
How to Format XML in Notepad++ Quickly - TMS
December 8, 2025 - Open Notepad++: Start by launching Notepad++ on your computer. ... Go to the menu bar and click on Plugins. Select Plugins Admin from the dropdown. In the search box, type XML Tools.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ xml-formatting-in-notepad-how-to-format-xml-files
XML Formatting in Notepad++ โ€“ How to Format XML Files
May 3, 2023 - If you're working with XML files in Notepad++, formatting them manually could be a cumbersome task especially if the XML files are large. In this article, I will show you how to format your XML files in a few clicks. I will also show you how to check...
๐ŸŒ
JSON Formatter
jsonformatter.org โ€บ xml-formatter
Best XML Formatter and XML Beautifier
Supports Tree View of XML data to navigate and helps you analyze better, makes it XML human readable. Supports xml indent levels: 2 spaces, 3 spaces, 4 spaces. XML Formatter can be used as alternative of VSCode / Sublime / Notepad++. XML tidy supports WSDL Formatter, SOAP Formatter, XSD, POM, SGML, RDF, SVG, RSS and all xml data files which represents extensible markup languages. Free XML Formatter also works as XML Converter / Convertor to JSON.