Batch convert pipe delimited text files to XML files

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

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

Download DataFileConverter Download DataFileConverter

Batch convert TXT (“|” pipe delimited text) files to XML files

Select source TXT files -> Set XML files -> Convert TXT (“|” pipe delimited text) files to XML files

Click “Start a New Convert” at task dialog.

bulk convert TXT files to XML files - task window

then show the wizard.

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

batch transform TXT files to XML files - select type

1. Select source TXT (“|” pipe delimited text) files.

batch create  XML files from TXT files- select TXT file folder

And config the first source TXT (“|” pipe delimited text) file.

batch create  XML files from TXT files- config TXT file

2. Config target XML files.

batch generate Xml files by TXT files - config XML files

3. Summary.

List source TXT (“|” pipe delimited text) files.

batch convert TXT files to XML files - list TXT files

batch convert TXT files to XML files - summary

4. Convert TXT (“|” pipe delimited text) files to XML files, 1 TXT to 1 XML.

batch convert TXT files to XML files - convert files

After converting, you can view output XML files.

Convert TXT file to XML file - view XML file


More about TXT to XML converter

See Video: Bulk convert TXT (“|” pipe delimited text) files to XML files in a few clicks

See also:

Pipe-delimited → XML reference

What is a pipe-delimited file?

A pipe-delimited file (also called pipe-separated values, PSV) is a plain-text file where each line is one record and a vertical bar | separates the fields. It works like CSV but uses | instead of ,, so a value that contains commas needs no quoting.

Name|Age|City
Alice|30|New York
Bob|41|San Francisco

To open it in Excel: Data → From Text/CSV, then set the delimiter to | (or Text to Columns → Other = |).

Type mapping

Value kindin Pipe-delimitedin XML
Int1234<int>1234</int>
Bigint9007199254740993<bigint>9007199254740993</bigint>
Decimal1234.56<decimal>1234.56</decimal>
Float1.234e+10<float>1.234e10</float>
Textquoted only when it contains a pipe or a quote<char>text</char>
Long textmust be quoted; line breaks inside force multi-line records<text>multi-line text</text> (entities for &amp; &lt;)
Date2026-09-18<date>2026-09-18</date> (xs:date with an XSD)
Datetime2026-09-18 14:30:00<datetime>2026-09-18T14:30:00Z</datetime> (xs:dateTime)
Binarynot representable - base64 or hex string<blob>base64...</blob> (xs:base64Binary)
BooleanTRUE / FALSE, or 1 / 0 depending on the writer<bool>true</bool>
JSONthe whole JSON value quoted, with internal quotes doubledescaped inside an element, or its own sub-tree

Dialect differences

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

Propertyin Pipe-delimitedin XML
identifiersDouble quotes; a literal quote is doubled ("" )Attribute values in quotes; entities (&amp; &lt; &gt;) for ...
datesConventional text: 2026-09-18 or 2026-09-18 14:30:00Text (xs:date / xs:dateTime when an XSD is in play)
binaryNot supportedbase64Binary / hexBinary inside text
separatorPipe "|"Tags, not delimiters
encodingNo declaration - UTF-8 works only with a BOMDeclared in the XML declaration
typingNone - every field is textNone in the markup itself
shapeFlat table, optional header rowArbitrary tree
ceilingNo formal limit; row count bounded by memoryWhole document is usually parsed into 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.


Posted

in

by