XML
  Home arrow XML arrow Page 4 - The Why and How of XML Data Islands
IBM developerWorks
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 
VeriSign Whitepapers 
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

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 / 10
    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
     
    Iron Speed
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    The Why and How of XML Data Islands - HTML tags that can be bound to an XML island


    (Page 4 of 4 )

    An HTML table is but one of the elements for which you can bind data from an XML data island. Here are a few examples that should work.

    The Button object

    <input type="button" DATASRC="#WebStudents" DataFld="name"/>
    will show up when browsed as:

    The Textbox object

    <input type="text" DATASRC="#WebStudents" DataFld="name"/>
    will show up as:

    The Span tag

    <span DATASRC="#WebStudents" DATAFld="legacySkill"></span>
    will show up as:

    The DIV tag

    <div DATASRC="#webstudents" DataFld="name"/></div>

    The marquee tag

    <marquee DATASRC="#WebStudents" DataFld="name"> </marquee> caught at a fixed location as:

    caught while entering

    Summary

    This tutorial considered embedding a well formed XML fragment into an HTML file to create an XML data island and showed how one could access data embedded in the XML file. The tutorial also showed the different HTML tags to which the data from the XML data island can be bound. With XML becoming ever more pervasive and the client side implementation gaining a lot of ground, a working knowledge of XML data islands is deemed essential; this tutorial is addressed to provide such a background. The browser specific nature of the source code makes it necessary to hide the XML island from non-IE browsers. This concern is not addressed in the tutorial.


    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.

       · 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

    - 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


    Iron Speed





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