Reader Level:
ARTICLE

Generate XML File Using Access 2013

On August 28, 2012 Articles | Office 2013
In this article I will explain how to generate the Xml file using Access 2013.
  • 0
  • 0
  • 6073

Introduction

Sometimes an Access database must be read in XML Format. To do this use the following steps.

Step 1

Open Access 2013 and click on Blank database and then give the name of the database. Here the name of the database is "XmlReader".

CreateDatabaseInAccess2013.jpg

Step 2

Now add some data to the database as:

AddDataInAccessDatabase.jpg

Step 3

Now save this database and give a name for the table that you want to give. Here I use EmployeeDetails as the table name.

EmployeeDetailsTableInAccess2013.jpg

Step 4

Now go to the External Data and select the XML file as in:

SelectXmlFileFromAccess2013.jpg

Step 5

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.

GiveXmlFileNameInAccess2013.jpg

Step 6

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:

ExportXmlWindowInAccess2013.jpg

Step 7
 
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:

XmlFileOutputUsingAccess2013.jpg

In this way we can convert the Access database to the XML format.

Richa Garg

I am a Junior Software Developer In MCN Solutions Pvt. ltd. and very much interested in .net technology : Asp.net, C#, WPF,  SQL Server, Windows Store apps, HTML, DHTML, CSS etc......

  • 66rank
  • 978K readers
COMMENT USING

Trending up