Tải bản đầy đủ (.pdf) (14 trang)

Tài liệu Building XML-Based Web Applications pptx

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (191.11 KB, 14 trang )





Course Number: 1905A


Released: 04/07/00

Delivery Guide
Building XML-Based
Web Applications
Part Number: X05-42123

Information in this document is subject to change without notice. The names of companies,
products, people, characters, and/or data mentioned herein are fictitious and are in no way intended
to represent any real individual, company, product, or event, unless otherwise noted. Complying
with all applicable copyright laws is the responsibility of the user. No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of Microsoft Corporation. If, however, your only
means of access is electronic, permission to print one copy is hereby granted.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.

 2000 Microsoft Corporation. All rights reserved.

Microsoft, ActiveX, FrontPage, IntelliSense, MSDN, PowerPoint, Visual Basic, Visual C++,
Visual InterDev, Visual Studio, and Windows are either registered trademarks or trademarks of


Microsoft Corporation in the U.S.A. and/or other countries.

The names of companies, products, people, characters, and/or data mentioned herein are fictitious
and are in no way intended to represent any real individual, company, product, or event, unless
otherwise noted.

Other product and company names mentioned herein may be the trademarks of their respective
owners.


Program Manager: Steve Merrill
Instructional Designers: Sangeeta Nair (NIIT), Vijayalakshmi Narayanaswamy (NIIT)
Subject Matter Experts: Andy Olsen (QA Training), Andy Longshaw (Content Masters)
Content Lead: Janet Robinson
Graphic Artist: Scott Serna (Creative Assets)
Media Management: David Mahlmann
Media Production: Dean Connolly (Art Source), Timothy Demmon (:timebomb Media)
Editing Manager: Jennifer Linn
Editor: Dennis Rae (Wasser)
Production Manager: Miracle Davis
Print Coordinator: Marlene Lambert (Online Training Solutions, Inc)
Build Manager: Julie Challenger
Build Coordinator: Jenny Boe
Test Lead: Eric Myers
Manufacturing Manager: John Williams
Group Product Manager: Steve Elston


Course Number: 1905A
Part Number: X05-42123

Released: 04/07/00
Building XML-Based Web Applications iii


Contents

Introduction
Course Materials ..................................................................................................... 2

Prerequisites............................................................................................................ 3

Course Objectives ................................................................................................... 4

Course Outline ........................................................................................................ 5

Course Outline (continued) ..................................................................................... 6

Setup ....................................................................................................................... 7

Microsoft Certified Professional Program .............................................................. 8

Facilities ................................................................................................................ 10

Module 1: Overview of XML Documents
Overview................................................................................................................. 1

Structuring Data ...................................................................................................... 2

What is XML?....................................................................................................... 10


Creating XML Documents.................................................................................... 19

Grammars and Namespaces .................................................................................. 36

Demonstration: The LitWare Books Application ................................................. 42

Review .................................................................................................................. 43

Module 2: Overview of XML Technologies
Overview................................................................................................................. 1

XML Technologies: The Big Picture...................................................................... 2

Viewing XML with Style Sheets ............................................................................ 7

Binding XML to HTML........................................................................................ 17

Accessing XML with the Document Object Model.............................................. 25

Validating XML.................................................................................................... 32

Review .................................................................................................................. 43

Module 3: Generating XML Data from a Database
Overview................................................................................................................. 1

Overview of XML-Based Web Applications.......................................................... 2

Using Active Server Pages.................................................................................... 10


Lab 3.1: Creating and Using an Active Server Page............................................. 22

Accessing Data with ADO.................................................................................... 29

Returning XML to the Client ................................................................................ 42

Lab 3.2: Querying a Database and Returning XML Data..................................... 50

Review .................................................................................................................. 63

Module 4: Displaying an XML Document Using XSL
Overview................................................................................................................. 1

Transforming XML with XSL ................................................................................ 2

Using Templates ..................................................................................................... 9

Filtering and Sorting XML.................................................................................... 22

XSL Language Constructs .................................................................................... 33

Creating New Nodes Dynamically........................................................................ 39

Lab 4: Displaying an XML Document Using XSL............................................... 44

Review .................................................................................................................. 52

Module 5: Embedding XML Data in HTML
iv Building XML-Based Web Applications



Overview................................................................................................................. 1

Using Data in Web Browsers.................................................................................. 2

Data Binding ......................................................................................................... 10

Manipulating the Data Source............................................................................... 24

Lab 5: Embedding XML Data in HTML .............................................................. 37

Review .................................................................................................................. 47

Module 6: Manipulating XML Data on the Client Using DOM
Overview................................................................................................................. 1

The DOM View of XML Documents ..................................................................... 2

Accessing DOM Trees ............................................................................................ 9

Transforming XML with XSL Programmatically................................................. 22

Lab 6.1: Transforming XML Data on the Client................................................... 31

Working with Elements and Attributes................................................................. 36

Lab 6.2: Manipulating XML Data on the Client................................................... 49

Displaying XML Data Using DOM ...................................................................... 57


Lab 6.3: Displaying XML Data Using DOM........................................................ 65

Review .................................................................................................................. 72

Module 7: Posting XML Data from Client to Server
Overview................................................................................................................. 1

Preparing XML Data on the Client ......................................................................... 2

Posting Data to the Server..................................................................................... 11

Lab 7.1: Sending XML Packets to the Server....................................................... 16

DOM Manipulation on the Server......................................................................... 24

Receiving the Response on the Client................................................................... 36

Lab 7.2: Processing XML Packets at the Server ................................................... 42

Review .................................................................................................................. 54

Module 8: Validating XML Data Using Schemas
Overview................................................................................................................. 1

The Need for Validation.......................................................................................... 2

Writing an XML Schema...................................................................................... 15

Extending an XML Schema .................................................................................. 34


Validating XML in a Client/Server Environment ................................................. 38

Lab 8: Validating XML Data Using Schemas ...................................................... 46

Review .................................................................................................................. 54

Module 9: Introducing BizTalk
Overview................................................................................................................. 1

Business-to-Business Challenges............................................................................ 2

Overview of BizTalk............................................................................................... 6

BizTalk Jumpstart Kit ........................................................................................... 13

Review .................................................................................................................. 18

Appendix A: Lab Answers
Lab 3.1: Creating and Using an Active Server Page............................................... 1

Lab 3.2: Querying a Database and Returning XML Data....................................... 3

Lab 4: Displaying an XML Document Using XSL............................................... 12

Lab 5: Embedding XML Data in HTML .............................................................. 18

Lab 6.1: Transforming XML Data on the Client................................................... 26

Lab 6.2: Manipulating XML Data on the Client................................................... 28


Lab 6.3: Displaying XML Data Using DOM........................................................ 35

Building XML-Based Web Applications v


Lab 7.1: Sending XML Packets to the Server....................................................... 41

Lab 7.2: Processing XML Packets at the Server ................................................... 47

Lab 8: Validating XML Data Using Schemas ...................................................... 59

Appendix B

×