XML
  Home arrow XML arrow Page 5 - MSXML, concluded
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 
Moblin 
JMSL Numerical Library 
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

MSXML, concluded
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2006-03-30

    Table of Contents:
  • MSXML, concluded
  • The DisplayTitles() Function
  • The ValidateDocument() Function
  • MSXML and XSLT
  • Summary

  • 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


    MSXML, concluded - Summary


    (Page 5 of 5 )

    In this chapter you learned how to combine the power of XML and the MSXML application program interface that enables you to interact with an XML document from within an application written in one of the popular programming languages.

    MSXML enables you to access an XML document by using an application that you create rather than accessing the XML document using a browser. MSXML contains preprogrammed classes and functions that contain code necessary to access and manipulate information in an XML document.

    You need to call the appropriate classes and functions from within your application to interact with an XML document without having to write tedious code to read and parse the XML document. MSXML works with C, C++, Visual Basic, VBScript, Jscript, and JavaScript.

    Quiz

    1. MSXML can only be used with JavaScript.

      a. True

      b. False 
    2. The async = false means

      a. Statements will continue to execute as the XML document is being loaded.

      b. Statements will not execute until the XML document is being loaded.

      c. The XML document is synchronized to the HTML page.

      d. None of the above. 
    3. firstChild is a

      a. Property containing a reference to the first child of an element

      b. Method that makes the current node the first child

      c. Method that substitutes the first node for the last node

      d. Method that substitutes the last node for the first node 
    4. createElement(“title”) means

      a. Create a new HTML element

      b. Create a new XML element

      c. Create a title for a new HTML element

      d. Create an attribute called title for the current XML element 
    5. “/catalog/cd[@upc=‘“ + upc + “‘] means

      a. Find the text that matches the value of the upc variable in the cd element

      b. Find the upc attribute that matches the value of the upc variable in the cd element

      c. Find the upc element that matches the UPC in the cd element

      d. All of the above 
    6. An XML document can be validated against a DTD by calling the validate() method.

      a. True

      b. False
    7. The appendChild() appends a node to the end of an XML document.

      a. True

      b. False 
    8. The version is specified in ActiveXObject(“MSXML2 .DOMDocument.4.0”) because

      a. Versions are designed to coexist with previous versions.

      b. Only the version specified can be used with the XML document.

      c. It identifies potential conflicts in versions.

      d. None of the above.
    9. The loadXML() method is used when the document is passed as a string.

      a. True

      b. False 
    10. getAttribute(“upc”) retrieves the value of the upc attribute.

      a. True
      b. False

    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.

       · This article is an excerpt from the book "XML DeMYSTified," published by...
     

    Buy this book now. This article is excerpted from chapter 10 of XML DeMYSTified, written by Jim Keogh and Ken Davidson (McGraw-Hill/Osborne, 2005; ISBN: 0072262109). Check it out today at your favorite bookstore. Buy this book now.

    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