XML
  Home arrow XML arrow Page 3 - 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 - Showing the complete data


    (Page 3 of 4 )

    You may complete this picture by adding the other two DATAFLDs, namely student id and legacySkill, and your display would be as shown in the next picture. Some additional formatting has been added to make the display a little more jazzy. You may also notice that the data may be accessed in any order and need not follow the same one as in the original XML. If you choose not to show this data, you may leave them out as in Basic.htm.

    Referencing an XML file on a web server

    In Simple.htm the XML file was hard coded into the page. Instead of this you may also reference a file on the web server by referencing its "src" property as shown in the next snippet.

    <xml DATASRC="WebStudents" src="http://localhost/webstudents.xml" ></xml>

    The source of the htm file, Basic2.htm with XML being referenced to a file saved on the web server, is shown in the next paragraph.

    Basic 2.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" src="http://localhost/webstudents.xml"></xml>
     <P>Here ends the XML Data Island</P>
     <table DATASRC="#WebStudents" border="1" bgcolor="powderblue">
    <tr>
    <td><span DATAFLD="name"></td>
    <td><span DATAFLD="id"></td>
    <td><span DATAFLD="legacySkill"</td>
    </tr>
    </table>
     </BODY> 
    </HTML> 

    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
    Stay green...Green IT