XML
  Home arrow XML arrow Page 3 - Importing XML Files into Access 2007
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? 
XML

Importing XML Files into Access 2007
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2007-03-06

    Table of Contents:
  • Importing XML Files into Access 2007
  • Importing the XML file
  • Modifying the webstudents.xml file
  • Another method for bringing in an XML 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


    Importing XML Files into Access 2007 - Modifying the webstudents.xml file


    (Page 3 of 4 )

    It is possible to bring the XML file contents into an Access table if the attributes are replaced by elements as shown in the next listing. The basic data remains the same by this conversion for this particular file.

    <?xml version="1.0"?>
    <?xml version="1.0"?>
    <Xstudent> 
    <!-- My students who attended my web programming class --> 
    <student> 
    <id>1</id> 
    <name>Linda Jones</name>  
    <legacySkill>Access, VB5.0</legacySkill> 
    </student> 
    <student>
    <id>2</id> 
    <name>Adam Davidson</name>  
    <legacySkill>Cobol, MainFrame</legacySkill> 
    </student> 
    <student>
    <id>3</id>  
    <name>Charles Boyer</name>  
    <legacySkill>HTML, Photoshop</legacySkill> 
    </student> 
    </Xstudent>
    

    When you bring in the above file by following the previously mentioned import steps and browse to the above file, the Import XML window displays the following.

    Now if you bring in structure and data you will successfully add a student table  with its data as shown in the next picture.

    More XML Articles
    More By Jayaram Krishnaswamy


       · Access 2007 fails in a manner similar to Access 2003 while importing...
     

    XML ARTICLES

    - More on Triggers and Styles and Control Temp...
    - Looking at Triggers with Styles and Control ...
    - A Closer Look at Styles and Control Templates
    - Styles and Control Templates
    - Properties and More in XAML
    - Elements and Attributes in XAML
    - XAML in a Nutshell
    - Importing XML Files into Access 2007
    - Using MSXML3.0 with VB 6.0
    - MSXML, concluded
    - MSXML, continued
    - MSXML Tutorial
    - Generating XML Schema Dynamically Using VB.N...
    - XSL Transformations using ASP.NET
    - Applying XSLT to XML Using ASP.NET





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek