Parse an XML document and collect its text content without element markup. Follow the exact input and settings below to reproduce this example. Open XML to Text.
Prepare the source text
Open XML to Text and choose Write or paste text, or upload a supported UTF-8 text file. The upload opens the editor; it does not run the tool. This example uses the exact source shown in the comparison.
Maximum input and result: 1 MB of UTF-8 text, with a 1,048,576-character input ceiling. Expanding transformations must also fit the result limit.
Use the exact example input
<items> <item>Apple</item> <item>Banana</item> </items>
This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.
Check how the tool works
This tool has no extra transformation options to set. Keep the source exactly as shown to compare the result.
The parser rejects invalid XML and declarations for document types or entities. It reads text content from the document element, trims each resulting line and removes empty lines. Attribute values and element names are not included. Adjacent elements may produce adjacent text if the source has no separating whitespace.
The example in this guide
Verified in the i2TEXT browser workflow on November 11, 2026.
- Input
- example.txt
- Output
- xml-to-text.txt
- Saved result
- 12 bytes
Apply and inspect the result
Select XML to Text when the input and settings are ready. In the saved example, the result begins: "Apple".
The conversion discards structure and attributes. It does not expand external entities or fetch referenced documents. Keep the original XML when those details matter.
Result overview compares input and result UTF-8 byte sizes. Check the extracted text for adjacent values that need a separator; a smaller byte total reflects discarded markup, not preservation of the XML structure.
Result overview distinguishes changed, unchanged and empty results. An unchanged result means the selected operation did not alter the text; an empty result can be the expected outcome of removal or extraction.
Save the version you reviewed
Review the current result, then use the download icon to save a TXT file. The actual download in this example is named xml-to-text.txt. Copy and download use the current result, so make any final wording changes before saving. Continue to can carry the result into a compatible next tool, where you review it before running another operation.
Editing the result hides the calculated details until you run the tool again. Copy and TXT download use the edited text; return to the source and reapply the tool to refresh the report.
example.txtxml-to-text.txt
Common questions
Which settings produced this example?
No extra transformation settings were required. The source and actual output are shown in the comparison.
What should I check before using the result?
The conversion discards structure and attributes. It does not expand external entities or fetch referenced documents. Keep the original XML when those details matter.
Where is this text processed?
This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.
Try XML to Text with your own text.
Use your own source and review the result before sharing.