Home arrow XML arrow Page 4 - Displaying ADO Retrieved Data with XML Islands
XML

Displaying ADO Retrieved Data with XML Islands


An XML data island is a piece of well-formed XML embedded into an HTML file. This article will show you how to retrieve data in an XML format from a database using ADO; you will also learn how to bind this data into an HTML document.

Author Info:
By: Jayaram Krishnaswamy
Rating: 5 stars5 stars5 stars5 stars5 stars / 8
September 06, 2006
TABLE OF CONTENTS:
  1. · Displaying ADO Retrieved Data with XML Islands
  2. · Extracting XML formatted data example
  3. · The Saved XML file
  4. · Reviewing the saved file
  5. · Data types in Access 2003 and XML file
  6. · Displaying retrieved XML in an HTML document
  7. · Creating an HTML document which can display the XML Data

print this article
SEARCH DEVARTICLES

Displaying ADO Retrieved Data with XML Islands - Reviewing the saved file
(Page 4 of 7 )

Although the file is large, it consists basically of two parts, as shown in the browser display of this file after collapsing all the details. As seen in the next picture, the file's two parts are the 'Schema' and the 'Data' represented by their prefixes, 's:' and 'rs:' as shown in the namespaces -- the first four lines in the document which have the prefix xmlns.

The schema section

The next picture shows just one element from the expanded 's' node in the displayed XML file in the browser. You can also see that it is updatable. This particular slice corresponds to the 'Address' field of the Employees table shown in the first picture. The fields are listed alphabetically in the persisted file. The other elements also show the various attributes of the Address field. In the original table, the Address field's Data type is text and field size is 60. The XML attribute with the prefix 'dt' which marks the beginning of each row shows this information. The 'text' has become 'string' and the field size has become 'maxlength.' The schema information therefore is an accurate representation of the data structure.

The Data Section

The next section shows the only row of data taken from the data section. The prefix 'z' marks the beginning of the data. The XML file has only one row of the table returned corresponding to the LastName='Peacock.'


blog comments powered by Disqus
XML ARTICLES

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- Using Regions with XSL Formatting Objects
- Using XSL Formatting Objects
- More Schematron Features
- Schematron Patterns and Validation
- Using Schematron
- Datatypes and More in RELAX NG
- Providing Options in RELAX NG
- An Introduction to RELAX NG
- Path, Predicates, and XQuery
- Using Predicates with XQuery
- Navigating Input Documents Using Paths
- XML Basics
- Introduction to XPath

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials