File formats / 11 formats, every pair
XML to SQL converter
Turn XML into SQL — CREATE TABLE and INSERT statements with quoted identifiers — in this browser tab. Paste your XML, copy the SQL: the quoting and escaping SQL needs are applied for you.
XML to SQL, worked out
3 rows and 4 columns: 21 lines of XML become 11 lines of SQL.
XML in
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<row>
<product>Desk lamp</product>
<region>EU</region>
<units>128</units>
<field name="unit price">24.50</field>
</row>
<row>
<product>Chair</product>
<region>R&D</region>
<units>64</units>
<field name="unit price">98.00</field>
</row>
<row>
<product>Monitor</product>
<region>APAC</region>
<units>32</units>
<field name="unit price">249.99</field>
</row>
</rows>SQL out
CREATE TABLE "imported_table" (
"product" VARCHAR(255),
"region" VARCHAR(255),
"units" INTEGER,
"unit price" DECIMAL(10, 2)
);
INSERT INTO "imported_table" ("product", "region", "units", "unit price") VALUES
('Desk lamp', 'EU', 128, 24.50),
('Chair', 'R&D', 64, 98.00),
('Monitor', 'APAC', 32, 249.99);SQL result
CREATE TABLE "imported_table" (
"product" VARCHAR(255),
"region" VARCHAR(255),
"units" INTEGER,
"unit price" DECIMAL(10, 2)
);
INSERT INTO "imported_table" ("product", "region", "units", "unit price") VALUES
('Desk lamp', 'EU', 128, 24.50),
('Chair', 'R&D', 64, 98.00),
('Monitor', 'APAC', 32, 249.99);Conversions next to this one
Next in this job
Chosen from where these tools sit in the catalogue — the same workbench, the same category, the same words. Nothing here measures what you or anyone else opened.
- XML to AsciiDoc converterConvert XML to AsciiDoc in your browser.Next along in the same workbench
- XML to LaTeX converterConvert XML to LaTeX in your browser.Next along in the same workbench
- SQL to XML converterConvert SQL to XML in your browser.Another XML tool
- ER Diagram to SQL ConverterTurn a Mermaid erDiagram into runnable CREATE TABLE statements for PostgreSQL, MySQL or SQLite, with primary keys, foreign keys and junction tables for many-to-many.Another SQL tool