XML
  Home arrow XML arrow Page 7 - Displaying ADO Retrieved Data with XML Isl...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
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

Displaying ADO Retrieved Data with XML Islands
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2006-09-06

    Table of Contents:
  • Displaying ADO Retrieved Data with XML Islands
  • Extracting XML formatted data example
  • The Saved XML file
  • Reviewing the saved file
  • Data types in Access 2003 and XML file
  • Displaying retrieved XML in an HTML document
  • Creating an HTML document which can display the XML Data

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Displaying ADO Retrieved Data with XML Islands - Creating an HTML document which can display the XML Data


    (Page 7 of 7 )

    AdoIsland.html

    In the code shown next, insert the XML data island created in the previous section and save it as AdoIsland.htm. Make sure the DATASRC attribute of the table corresponds to the ID field of the XML Data Island. The DATAFIELD attribute refers respectively to the data fields in the XML data island.

    <html><head><title></title></head>
    <body>
    <table DATASRC="#Test">
    <tr>
    <tr><td>
    <table DATASRC="#Test" DATAFLD="rs:data" border="1"
    bgcolor="yellow">
    <tr><td>
    <table DATASRC="#Test" DATAFLD="z:row">
    <tr>
    <td><span DATAFLD="EmployeeID"></span</td>
    <td><span DATAFLD="FirstName"></span</td>
    <td><span DATAFLD="LastName"></span</td>
    </tr>
    </table>
    </td></tr>
    </table>
    </td></tr>
    </table>
    <!--Here plug in the XML Data Island -->
    </body>
    </html>

    Displaying the XML Data retrieved on the IE

    Now if you browse the AdoIsland.htm file the display should appear as follows. If you refer to the table above, you can see that although all fields are in the XML Data Island, only three of them are called while displaying.

    Displaying the image saved as an embedded BMP file

    From the XML file you could retrieve the field for the 'Photo' and display the image on the browser. For this, you need to add another cell to the table and insert the following for the cell.

    <td><img src=""  DATAFLD="Photo"></td>

    With the above table cell added to the table, the display now appears as shown here. For this to display correctly you should have the corresponding BMP file at the same location as the AdoIsland.htm file.

    Summary

    This tutorial extends the previous tutorial to show how to access data and display it using the ADO's save() method. An example to display the persisted data using the XML Data Island was described. More importantly, the data types in MS Access as they relate to data types in the persisted XML file were shown in detail. Similar ideas will help in accessing data from a web server with Active Server Pages as well.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · ADO was indeed a milestone in Microsoft's data access technology. It replaced the...
     

    XML ARTICLES

    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE
    - UI Design with Java and XML Toolkits
    - Displaying ADO Retrieved Data with XML Islan...
    - Widget Walkthrough
    - Introduction to Widgets
    - The Why and How of XML Data Islands
    - Creating an XUL App Installer
    - Overlays in XUL
    - Skinning Your Custom XUL Applications







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway