Solved

What is the syntax for exporting an Access table to xml WITHOUT the Schema of Data information?

Posted on 2014-09-11
4
130 Views
Last Modified: 2014-09-26
I need to export a single table to xml. I want to put the code behind a button.

Thanks.
0
Comment
Question by:Buck_Beasom
  • 2
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 40318985
Hi,

pls try

Application.ExportXML ObjectType:=acExportTable, DataSource:="YourTable", DataTarget:="c:\yourTable.xml"

Regards
0
 

Author Comment

by:Buck_Beasom
ID: 40319336
So no argument is required to keep it from including the schema in the xml? (It works, but I don't know enough about xml files to tell if the schema is in it.)

Thanks.
0
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40319782
Hi
If I wanted to export the schema (another file it would be

Application.ExportXML ObjectType:=acExportTable, DataSource:="YourTable", DataTarget:="c:\yourTable.xml", SchemaTarget:="c:\yourSchema.xml"

Reference
http://msdn.microsoft.com/en-us/library/office/ff193212(v=office.15).aspx
0
 

Author Closing Comment

by:Buck_Beasom
ID: 40345949
Outstanding. Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Photo Albums in PowerPoint Photo Albums are a very useful tool in PowerPoint and allow you quickly add a large number of images. The images can be formatted in a variety of ways so that you are able to create a professional looking presentation v…
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now