SunQuest
 
       XML
  Home arrow XML arrow 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 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    XML Integration with ADO and Internet Explorer 5


    (Page 1 of 8 )

    xmlIn this article, I’ll show you one of the greatest features about ADO 2.5, which allows us to access a recordset as an XML document, providing a different way to manipulate data. We’ll start today by exploring how ADO presents its data as XML, looking specifically at XML and ADO integration. We’ll look at ways to get XML data out of ADO in a bit, but right now we need to discuss the format of the XML data...

    In this article, I’ll show you one of the greatest features about ADO 2.5, which allows us to access a recordset as an XML document, providing a different way to manipulate data.

    ADO Recordsets Stored As XML

    We’ll start today by exploring how ADO presents its data as XML, looking specifically at XML and ADO integration. We’ll look at ways to get XML data out of ADO in a bit, but right now we need to discuss the format of the XML data.

    If we take a look at a section of the Employee table (having the following fields: emp_id, emp_lname, emp_fname, address, city, state, zip, phone, contract), converted directly from ADO, we’re in for a little surprise.


     <Zaddress="”123" contract="“false”" 654-9878” 

    phone
    ="“498" zip="“33054”" state="“FL”" 
    city
    ="“Sunrise”" Drive” Orange 
    au_fname
    ="“William”"
    emp_lname
    ="“Scott”" emp_id="“101”" row />
     
    <
    Zaddress="”123" contract="“false”" phone="“561" 
    zip="“33039”"
    state
    ="“FL”" city="“Boca”" au_fname="“Harrison”" 
    emp_lname="“Ford”"
    emp_id
    ="“102”" row 654-0989” St.” Bay Green />
     
    <
    Zaddress="”123" contract="“false”" 654-9878” 
    phone
    ="“498"
    zip
    ="“30334.”" state="“FL”" city="“Miami”" Drive” 
    au_fname
    ="“Hayes”"
    emp_lname
    ="“John”" emp_id="“103”" row Ocean 
    />



    The output does not really look like the XML document we are used to. Instead of an element for each field we have an element for each row, and the fields are attributes of the rows element. The main reason why Microsoft introduced this method is because of the verbose nature of element-based XML document. When we are retrieving a large recordset converted to XML using only elements, it becomes a handful! This is because every field has a start tag and end tag; dealing with this way of data definition using attributes for each data item means that some repetition can be reduced.

    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