ColdFusion
  Home arrow ColdFusion arrow Page 3 - CFXML: Probing XMLDOM in ColdFusion
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 
Moblin 
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? 
COLDFUSION

CFXML: Probing XMLDOM in ColdFusion
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2006-04-03

    Table of Contents:
  • CFXML: Probing XMLDOM in ColdFusion
  • Create a ColdFusion Object Using the Microsoft.XMLDOM Class
  • On accessing a structure
  • How do we get to the attributes?
  • How do we get at the Comment node?

  • 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

    CFXML: Probing XMLDOM in ColdFusion - On accessing a structure


    (Page 3 of 5 )


    What if you want to access the structure as a whole? No problem; by using the <cfdump> tag,we can get the structure of the required elements. Review the following code and its display for the "children" of the root element.

    <cffile action="read" file="C:\Inetpub\wwwroot\webstudents.xml"
    variable="xmldoc">
    <cfset mydoc = XmlParse(xmldoc)>
    <cfset rootchild=#mydoc.XMLRoot.XMLChildren#>
    <cfdump var="#rootchild#"> 

    The next picture shows the structure with the "element" details collapsed and the picture that follows shows it with one (the fourth) of the "xml elements" expanded. By clicking on the xml element row in the browser display you can expand or collapse the nodes.


    The 4th xml element node expanded view.

    More ColdFusion Articles
    More By Jayaram Krishnaswamy


       · The tutorial discusss two ways to access an XML document using ColdFusion. The...
     

    COLDFUSION ARTICLES

    - How to Access a SQL Anywhere Database with C...
    - CFXML: Probing XMLDOM in ColdFusion
    - Creating a Web Service with ColdFusion: the ...
    - CFAjax: What it is and How to Use it
    - Querying SQL 2000 Server from ColdFusion
    - Introduction to ColdFusion Markup Language, ...
    - Introduction to ColdFusion Markup Language
    - Databases and Dreamweaver MX 2004, concluded
    - Databases and Dreamweaver MX 2004
    - Welcome to Coldfusion MX 6.1, concluded
    - Welcome to Coldfusion MX 6.1
    - What You Must Know About ColdFusion Flow-Con...
    - What You Must Know About Operators in ColdFu...
    - Everything You Must Know About ColdFusion Va...
    - My First Application on ColdFusion MX Server







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