Microsoft Access
  Home arrow Microsoft Access arrow Page 3 - Exporting XML from MS Access 2003
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Exporting XML from MS Access 2003
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 14
    2006-08-01

    Table of Contents:
  • Exporting XML from MS Access 2003
  • Exporting the table from MS Access 2003
  • Exporting the extensible style language file, AccXml.xsl
  • The AccXml.xsl file

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Exporting XML from MS Access 2003 - Exporting the extensible style language file, AccXml.xsl


    (Page 3 of 4 )

    XML by itself produces a poor display, but together with an associated XSL file, it can display in several different formats. By reverting back to an earlier step, the XSL can also be exported by checking the appropriate options. However, the Data box must must be checked as well, as you can see what happens if Data is not selected as shown in the next picture.

    Choosing Data (XML) and the Presentation of your data (XSL) and clicking the OK button creates these files (XML and XSL) in the chosen directory. Since the AccXml.xml already exists, it is overwritten if you choose to do so, as in the present case. Additionally it also creates an AccXml.htm page as well. There are differences to the AccXml.xml file depending on whether you choose the schema or the style generation, as you can see from the next picture, which shows the AccXml.xml generated by choosing the Data (XML)& Style (XSL) combination.

    AccXml.xml (Generated using XML and XSL combination)
    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" 
    generated="2006-06-29T11:00:57">
    <Argentina>
    <CustomerID>OCEAN</CustomerID>
    <OrderDate>1997-01-09T00:00:00</OrderDate>
    <RequiredDate>1997-02-06T00:00:00</RequiredDate>
    <ShipName>Océano Atlántico Ltda.</ShipName>
    </Argentina>
    <!--Only one customer included in this picture-->
    </dataroot>
    

    The generated AccXml.htm file when browsed is displayed as shown in the next picture. Gone are the tags, and the node tree. This is now formatted into a table, drab no doubt, but still a no-frills HTML display.

    More Microsoft Access Articles
    More By Jayaram Krishnaswamy


       · The usage of XML in Internet is growing, and will grow evermore extensively. The...
       · Quote: "The usage of XML in Internet is growing, and will grow evermore extensively....
       · Thanks for the comments. XML is not relational, and that is obvious from the...
     

    MICROSOFT ACCESS ARTICLES

    - Converting a MySQL Database to an Excel Work...
    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    Stay green...Green IT