Withdata Software

Convert XML to pipe delimited text

Want to convert XML file to TXT (“|” pipe delimited text) file?

Try Withdata Data File Converter, a desktop XML to TXT converter for Windows, MacOS, and Linux, Convert XML to TXT, Easy and Fast.

Download Withdata DataFileConverter
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit

Convert XML to TXT (“|” pipe delimited text)

Choose XML file -> Set TXT file -> Convert XML to TXT

“Start a New Convert” for “XML to TXT”.

Select From “File” “XML” To “File” “TXT”.

1. Open source XML file.

Support large XML file ( > 4GB ).

Source XML file’s content is like this:

2. Config target TXT (“|” pipe delimited text) file.

3. Set rows options.

4. Convert XML to TXT.

After converting, you can view the output TXT (“|” pipe delimited text) file.


More about XML to TXT converter

See also:

XML → Pipe-delimited text reference

Type mapping

Value kindin XMLin Pipe-delimited text
Int<int>1234</int>1234
Bigint<bigint>9007199254740993</bigint>9007199254740993
Decimal<decimal>1234.56</decimal>1234.56
Float<float>1.234e10</float>1.234e+10
Text<char>text</char>quoted only when it contains a pipe or a quote
Long text<text>multi-line text</text> (entities for &amp; &lt;)must be quoted; line breaks inside force multi-line records
Date<date>2026-09-18</date> (xs:date with an XSD)2026-09-18
Datetime<datetime>2026-09-18T14:30:00Z</datetime> (xs:dateTime)2026-09-18 14:30:00
Binary<blob>base64...</blob> (xs:base64Binary)not representable - base64 or hex string
Boolean<bool>true</bool>TRUE / FALSE, or 1 / 0 depending on the writer
JSONescaped inside an element, or its own sub-treethe whole JSON value quoted, with internal quotes doubled

Dialect differences

Both XML and Pipe-delimited text are file formats, so what differs below is how each one chooses to represent a value.

Propertyin XMLin Pipe-delimited text
identifiersAttribute values in quotes; entities (&amp; &lt; &gt;) for ...Double quotes; a literal quote is doubled ("" )
datesText (xs:date / xs:dateTime when an XSD is in play)Conventional text: 2026-09-18 or 2026-09-18 14:30:00
binarybase64Binary / hexBinary inside textNot supported
separatorTags, not delimitersPipe "|"
encodingDeclared in the XML declarationNo declaration - UTF-8 works only with a BOM
typingNone in the markup itselfNone - every field is text
shapeArbitrary treeFlat table, optional header row
ceilingWhole document is usually parsed into memoryNo formal limit; row count bounded by memory

Data File Converter without the manual work

For batch jobs, large files and scheduling use the Data File Converter converter — an offline desktop app for Windows, Linux and macOS. Free trial.