Want to convert each table data in a SQL file to a separate XML file at one time?
Try Data File Converter, a SQL converting tool for Windows, MacOS, and Linux, Convert tables in a SQL file to XML files, Easy and Fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Convert files locally and privately, avoid uploading large SQL file(s) to online services.
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 each table data in a SQL file to a separate XML file
Select source SQL file -> Set target XML file -> Convert SQL table to XML
Click “Start a New Convert” at task dialog.
then show the wizard.
Select From “File” “SQL” To “Files” “XML”.
1. Open a source SQL file, select tables to convert to XML files.
2. Config target XML files.
3. Summary.
List selected tables.
4. Convert each SQL table to a separate XML file.
After converting, you can view output XML files.
Convert each SQL table to a separate XML file in command line
Save “SQL table to XML” session, then you can:
- Convert each SQL table to a separate XML file in Windows command line.
- Convert each SQL table to a separate XML file in Linux command line.
- Convert each SQL table to a separate XML file in macOS command line.
Set scheduled tasks for converting each SQL table to a separate XML file
You can schedule and automate this SQL table to XML converting task by:
- Save session and create .bat (Windows) or .sh (Linux/macOS) file for “SQL table to XML” conversion.
- Set scheduled task for “SQL table to XML” conversion.
FAQ
More about Withdata DataFileConverter – Tables in SQL file to XML converter
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
See Video: Convert each table data in a SQL file to a separate XML file at one time
SQL → XML reference
Type mapping
| Value kind | in SQL | in XML |
|---|---|---|
| Int | INT | <int>1234</int> |
| Bigint | BIGINT | <bigint>9007199254740993</bigint> |
| Decimal | DECIMAL(p,s) | <decimal>1234.56</decimal> |
| Float | DOUBLE PRECISION | <float>1.234e10</float> |
| Text | VARCHAR(n) | <char>text</char> |
| Long text | TEXT / CLOB | <text>multi-line text</text> (entities for & <) |
| Date | DATE | <date>2026-09-18</date> (xs:date with an XSD) |
| Datetime | TIMESTAMP | <datetime>2026-09-18T14:30:00Z</datetime> (xs:dateTime) |
| Binary | BLOB / BYTEA | <blob>base64...</blob> (xs:base64Binary) |
| Boolean | BOOLEAN / SMALLINT | <bool>true</bool> |
| JSON | JSON / TEXT | escaped inside an element, or its own sub-tree |
Dialect differences
Both SQL and XML are file formats, so what differs below is how each one chooses to represent a value.
| Property | in SQL | in XML |
|---|---|---|
| identifiers | Two competing conventions: single-quoted literals and diale... | Attribute values in quotes; entities (& < >) for ... |
| dates | Depends on the dialect: DATE literals, TO_DATE(), or plain ... | Text (xs:date / xs:dateTime when an XSD is in play) |
| binary | Dialect-specific: X-quoted literal, 0x hex, or decode() | base64Binary / hexBinary inside text |
| separator | Statement terminators (;) | Tags, not delimiters |
| encoding | No declaration | Declared in the XML declaration |
| typing | Types belong to the target database, and they differ betwee... | None in the markup itself |
| shape | Statements; a dump usually means CREATE TABLE plus INSERT rows | Arbitrary tree |
| ceiling | No formal limit, but a single INSERT statement has to fit i... | Whole 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.