XML
  Home arrow XML arrow Page 2 - The Why and How of XML Data Islands
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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

The Why and How of XML Data Islands
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 13
    2006-07-19

    Table of Contents:
  • The Why and How of XML Data Islands
  • Getting the names of students
  • Showing the complete data
  • HTML tags that can be bound to an XML island

  • 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


    The Why and How of XML Data Islands - Getting the names of students


    (Page 2 of 4 )

    It was mentioned that the XML data island represents the built-in Data Source Object DATASRC, which is identified by the id property. Associated with the data source are its fields, which are identified by the DATAFLD property. For example, the student "Linda Jones" will fit in as a DATAFLD. Let's add the following HTML code to this file:

    <table DATASRC="#WebStudents">
    <tr>
    <td><span DATAFLD="name"></span></td>
    </tr>
    </table>
    

    and call the new file Basic.htm, whose source is shown in the next paragraph:

    Basic.htm
    <HTML> 
    <HEAD> 
    <TITLE> </TITLE> 
    </HEAD> 
    <BODY>
    <h3>Html file with embedded XML</h3> <P>Here begins the XML Data Island</P> <xml id="WebStudents"> <wclass> <!-- My students who attended my web programming class --> <student id="1"> <name>Linda Jones</name> <legacySkill>Access, VB5.0</legacySkill> </student> <student id="2"> <name>Adam Davidson</name> <legacySkill>Cobol, MainFrame</legacySkill> </student> <student id="3"> <name>Charles Boyer</name> <legacySkill>HTML, Photoshop</legacySkill> </student> <student id="4"> <name>Charles Mann</name> <legacySkill>Cobol, MainFrame</legacySkill> </student> </wclass> </xml> <P>Here ends the XML Data Island</P> <table DATASRC="#WebStudents"> <tr> <td><span DATAFLD="name"></span></td> </tr> </table>  </BODY> </HTML>

    In the above added snippet, you have identified the DATASRC as "#WebStudents" and out of the three elements, student id, name, and legacySkill you have opted to show only the "name." Now if you browse the file Basic.htm, your display will appear as shown in the next picture. Although you have only a single <td/> element, you have all the rows of data.

    basic

    More XML Articles
    More By Jayaram Krishnaswamy


       · It's not trip and tricks with XML. It's the real stuff. The HTML using font color is...
       · I do not recall, in your article, that this was an IE Only capability.I'd love to...
       · Looks like I did not, although I exclusively referred to IE. XML Data Island is...
       · IE-only tech is useless. It's not the only browser on the planet. I like the idea,...
       · This is one way of doing. I want to know when the browser war will be finished so...
       · I've been looking and studing AJAX for a while now, libraries such as Ruby on Rails,...
       · I would like to add a little extra something upon my research into this...
       · Couple of months ago I wrote this in my blog. Not quite like Microsfot's take.I know...
       · My blog link in my previous message was scrubbed and my senetnece was hanging...
     

    XML ARTICLES

    - 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
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







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