XML
  Home arrow XML arrow Page 7 - XML Integration with ADO and Internet Expl...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
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

XML Integration with ADO and Internet Explorer 5
By: Gayathri Gokul
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 18
    2003-11-17

    Table of Contents:
  • XML Integration with ADO and Internet Explorer 5
  • ADO Recordset Namespace
  • ADO Recordset Schema
  • The Row Element
  • The Field Attributes
  • The Data Types
  • IE Data Islands and Binding
  • Binding Hierarchical 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


    XML Integration with ADO and Internet Explorer 5 - IE Data Islands and Binding


    (Page 7 of 8 )

    We have already seen a few examples of XML data islands and how to bind HTML elements to them in the previous tutorials. Let us take a look at it once again, since we’re going to be learning about data binding in detail today. We can create a data island with <XML> tag in an HTML page.


    <xml ID“diData” SRC “BookAuthors.xml”></xml>



    This references an external XML file as the source of the data. Alternatively, We can even embed the XML data within a <XML> tag.

     <XML id=“diData” <BookAuthors>
            <
    Author>
                   <
    au_id>1001</au_id>
                     <
    au_lnameGates </au_name>
                      <
    au_fnameBill </au_name>
               </
    Author>
         </
    BookAuthors>
    </
    XML>



    There are two forms of data binding. The first option is to bind single element, like so:

     <INPUT dataFld=“emp_id” 
    dataSrc
    =#diData” type=“TEXT”> </INPUT>



    This binds a single element to a field in the data source. An alternative method would be to use table for binding. Here we bind a table to the data source, and then elements in the table to the data field:

     
    <TABLE dataSrc=#diData”>
    <TBODY>
    <
    TR>
    <
    TD><INPUT dataFld=“emp_id” type=“TEXT”></INPUT></TD>
    <
    TD><INPUT dataFld=“emp_fname” 
    type
    =“TEXT”></INPUT></TD></TR></TBODY></TABLE>



    The Table would give the following result when DataBinding.html is loaded in IE.

    More XML Articles
    More By Gayathri Gokul


     

    XML ARTICLES

    - More on Triggers and Styles and Control Temp...
    - Looking at Triggers with Styles and Control ...
    - A Closer Look at Styles and Control Templates
    - Styles and Control Templates
    - Properties and More in XAML
    - Elements and Attributes in XAML
    - XAML in a Nutshell
    - Importing XML Files into Access 2007
    - Using MSXML3.0 with VB 6.0
    - MSXML, concluded
    - MSXML, continued
    - MSXML Tutorial
    - Generating XML Schema Dynamically Using VB.N...
    - XSL Transformations using ASP.NET
    - Applying XSLT to XML Using ASP.NET





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT