Convert GDB to XML
Export Firebird, InterBase, or Esri geodatabase content to the correct XML schema.
Convert GDB files online
We don’t have a dedicated online converter for GDB to XML yet, but you can convert GDB files online to these formats:
Want to convert GDB to XML?
Let us know. We pick the conversions to add next by how many people ask for them.
How to convert gdb to xml file
- Databases
- No ratings yet.
A receiving application may require an Esri XML Workspace Document, or a Firebird/InterBase system may need table records in XML for integration or archiving. Because .gdb identifies different database formats, identify the database engine before selecting an export method.
What the GDB format is
In database software, .gdb most commonly refers to one of two unrelated formats:
- Firebird or InterBase database: Older Firebird databases commonly use a single
.gdbfile. The database engine manages its tables, indexes, views, triggers, stored procedures, and records; the file should be accessed through a Firebird connection rather than edited directly. Current Firebird installations more commonly use.fdb. - Esri file geodatabase: This is a folder whose name ends in
.gdb. Its internal files store feature classes, tables, spatial indexes, domains, metadata, and other geodatabase structures. ArcGIS Pro and ArcGIS Desktop create and open it.
These formats are not interchangeable. A Firebird or InterBase file requires a database driver or server connection; an Esri geodatabase requires ArcGIS or software with compatible geodatabase support.
What XML provides
XML is a text-based, hierarchical format that represents records, fields, metadata, and relationships with elements and attributes. It is useful when a receiving system specifies an XML schema, when data must cross database platforms, or when text inspection and version control are required.
XML does not define one universal database structure. An Esri XML Workspace Document follows an ArcGIS schema and can contain geodatabase schema and, with the appropriate export setting, records. A Firebird export normally uses a custom or application-defined structure; XML alone does not standardize table names, data types, keys, relationships, or database behavior.
Convert an Esri file geodatabase
- Make a backup of the complete
roads.gdbfolder. Do not copy or upload individual internal files. - Open ArcGIS Pro and add the geodatabase through the Catalog pane.
- Open Analysis → Tools and run Export XML Workspace Document.
- Set
Input Datato the geodatabase or to selected feature datasets and tables, then specify an output file ending in.xml. - Select
DATAto export the schema and records, orSCHEMA_ONLYto export the structure without records. Select the storage and metadata options required by the receiving ArcGIS release, then run the tool.
For automation, ArcPy provides the equivalent operation:
arcpy.management.ExportXMLWorkspaceDocument(r"C:\data\roads.gdb", r"C:\exchange\roads.xml", "DATA", "NORMALIZED", "MODEL_SPECIFIC")
Use Import XML Workspace Document to restore the document to a geodatabase. ArcGIS is the appropriate desktop option when domains, subtypes, relationship classes, spatial references, or geodatabase metadata must be retained. A generic online converter is not an appropriate substitute because most browser services cannot read the internal file-geodatabase structure and uploading spatial data may violate security requirements.
Convert a Firebird or InterBase database
- Connect with a matching Firebird or InterBase client and a database tool such as DBeaver, FlameRobin, or IBExpert. Do not copy the database file while the server is writing to it; use a proper backup or a controlled, disconnected copy.
- In DBeaver, open the Firebird connection, select a table or query result, and choose Export Data. Select XML if it is available in the installed version, then set the output filename, encoding, column-name handling, and NULL representation.
- For a controlled export, run a query containing only the required columns and rows, then export that result. Export each required table separately unless the receiving application defines a multi-table XML schema.
For repeatable exports, use a Firebird driver such as firebird-driver or fdb with a script and define the XML schema explicitly. For example, the script can create one <customer> element per row and one child element per column with Python's xml.etree.ElementTree. The Firebird isql utility can extract metadata and SQL, but it is not a general database-to-XML exporter:
isql -user SYSDBA -password <password> localhost:C:\data\legacy.gdb
Online file converters are generally unsuitable for Firebird and InterBase databases: they usually cannot establish a database-engine connection, and uploading the file can expose credentials, personal data, proprietary schema, or uncommitted database content. A desktop database converter can be used only if it explicitly supports the Firebird or InterBase version and the required XML output schema.
Compatibility and data-loss checks
Confirm the required target before exporting: an Esri XML Workspace Document, GML, XML Metadata Interchange, a vendor-specific schema, or a custom record format are different XML applications. Renaming .gdb to .xml changes only the filename and does not convert the data.
A Firebird data export normally omits stored procedures, triggers, indexes, constraints, generators, permissions, transaction state, and other database behavior unless those objects are exported separately. Define representations for BLOBs, such as Base64, and verify date and timestamp formats, numeric precision, character encoding, and NULL values.
Esri export preserves supported geodatabase constructs, but compatibility depends on the ArcGIS release and export settings. Large datasets can produce very large XML files. Test the result by importing it into a temporary geodatabase or application and comparing row counts, field types, spatial references, domains, relationships, NULL values, and representative attribute and geometry records.
Information about file extensions and file types is provided by File-Extensions.org