Part II: XML Document Object Model




Download 2,96 Mb.
Pdf ko'rish
bet7/131
Sana14.05.2024
Hajmi2,96 Mb.
#232039
1   2   3   4   5   6   7   8   9   10   ...   131
Bog'liq
Ceponkus, Hoodbhoy - Applied XML - Toolkit for Programmers

Part II: XML Document Object Model
Part II describes the Document Object Model (DOM) specification as outlined in the W3C 
Recommended specification. The DOM is the critical link that exposes XML to 
programmers. It is a layer of abstraction in the form of objects that isolates the 
programmer from the nitty-gritty details of working with text documents. Even more 
importantly, this layer of abstraction can be implemented on top of existing databases (for 
example, SQL or Oracle databases) and make the data appear to be XML.

Chapter 4, Introduction to Document Object Model (DOM).
In this chapter, we explain 
what the DOM is, why you would use it and give a high level rundown of how it is 
used.

Chapter 5, DOM Reference
.
Here we jump straight into the internals of the DOM. 
There are various methods and properties that exist to help write applications. We 
present these details with several script-based examples. The majority of our 
examples are written in JavaScript and run under Microsoft Internet Explorer 5. If you 
don't know the details of JavaScript, don’t worry, because we briefly go over what you 
need to know to understand the examples. A few VBScript examples are also included 
for programmers who deal only with VBScript.

Chapter 6, Using the DOM in Different Environments
.
In this chapter we show how the 
DOM can be used from different languages and platforms. We cover several examples 
involving the two most predominant script-based languages, JavaScript and VBScript. 
In recognition that Java and XML are forecasted as the next great Web duo, we show 
how to use the DOM from Java by presenting working examples with three Java-
based XML parsers (Datachannel XML parser, IBM XML parser for Java, and the SUN 
XML parser.) In addition, we talk about how to use the DOM from Java Servlets and 
Active Server Pages, two popular server-side platforms. Lastly, we introduce how to 
use the DOM from Visual Basic.

Chapter 7, XML Support in Internet Explorer 5
.
In this chapter, we cover the specifics 
of the XML support that is provided with Internet Explorer 5 is outlined. The topics we 
cover include data types, namespaces, querying XML, XSL stylesheets, threading 
models, and asynchronous downloading.


- 8 -
After covering 
Chapters 4

5

6
and 
7
, you will have a firm understanding of the DOM. 
Knowing the details gives us all opportunity to be creative and apply our knowledge to 
real world scenarios. We dedicate the remaining three chapters in the DOM part to 
Scenarios.

Chapter 8, Internet Explorer 5 and Server-Side Scenario
:
 Online Shopping Demo
.
In 
this chapter we design and implement an online shopping site that uses Internet 
Explorer 5 as the client. This chapter covers important design issues by explaining 
how to use XML with the server. Active Server Pages are used to implement the 
server side processing for delivering catalogs and processing orders.

Chapter 9, Java Scenario
:
 Online Shopping Demo Continued
.
In this chapter, we 
extend the Online Shopping scenario by implementing a Java-based client.

Chapter 10, Visual Basic Scenario
:
 DOMifier
.
XML is not just limited to browsers; in 
this chapter, we explain how to build standalone desktop applications using the XML 
DOM. In it we build a Visual Basic application called the DOMifier. We’ve used this 
application throughout the book to assist you with learning and using the DOM. 

Download 2,96 Mb.
1   2   3   4   5   6   7   8   9   10   ...   131




Download 2,96 Mb.
Pdf ko'rish