Sometimes an Access database must be read in XML Format. To do this use the following steps.
Open Access 2013 and click on Blank database and then give the name of the database. Here the name of the database is "XmlReader".
Now add some data to the database as:
Now save this database and give a name for the table that you want to give. Here I use EmployeeDetails as the table name.
Now go to the External Data and select the XML file as in:
The Export XML file window is opened which asks for the name of the XML file that we want. Click ok without changing anything, this will create the XML file with the name the same as your table name, that is EmployeeDetails in this example.
Now the Export XML window is opened that asks for the file that you want to create; the options are XML, XSD (that is the Schema of the XML) and XSL (presentation of the data). We can create all of them at the same time by clicking on each and every checkbox but in this example I only select the XML checkbox to create only the XML file; see:
Now go to the location where your XML file is saved; the path that displays when you click on the XML file from the external data. In this the path is C:\Users\Richa\Documents. Here the file id created is named EmployeeDetails; open it in Notepad. It will look like:
In this way we can convert the Access database to the XML format.