?
Solved

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

Posted on 2014-09-11
4
Medium Priority
?
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 52

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 52

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

765 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