XML
  Home arrow XML arrow Page 8 - 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 - Binding Hierarchical Data


    (Page 8 of 8 )

    The examples we’ve looked at so far have been quite simple, but you’ll find a problem if you try to bind a set of XML data generated by ADO. The reason is that IE doesn’t recognize schemas as a definition of the data. IE looks at it as follows:

     <XML>
           <
    s:Schema data>
                    
    ..Your schema data goes here
             
    </s:Schema data>
               <
    rs:data>
                     <
    z:row……/>
                      <
    z:row……/>
                 </
    rs:data>
    </
    XML>



    So, IE sees two sets of data: the Schema and the actual data. We have an additional problem to handle because we saw that data we want is held within the row. In short our data is two levels deep, which means extra work on our part. The solution is to use two levels of binding. We will see the sample DataBinding.html for the present scenario.

     
    <TABLE dataFld=“rs:data” id=“tblData” dataSrc=#diData”>
    <TBODY>
    <
    TR>
    <
    TD>
    <
    TABLE dataFld=“z:row” id=“tblData” dataSrc=#diData” border=“1” <TR>
    <TBODY>
    <
    TR>
    <
    TD><SPAN dataFld=“emp_id”></SPAN></TD>
    <
    TD><SPAN dataFld=“emp_fname”></SPAN></TD>



    Here, we bind the outer table to the elements containing all of the data. In the second step, we have an inner table bound to the row of data. Finally the fields are bound, just as before.

    In the next part of the tutorial we will take a plunge into multiple levels of hierarchy, such as from a data shaped recordset, then we will add more levels to the binding. I hope that today’s section left you confident about integrating XML data with ADO and IE. Remember, experimentation is your friend. If you feel you need more practice, write up some code of your own! I think you’ll begin to enjoy this once you begin to really understand it.

    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.

     

    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 1 hosted by Hostway
    Stay green...Green IT