|
|
|
wl635-ver1.0
Integrating ASP and XML (2 days)
Description
This courseware training guide book will build on the concepts introduced in the Introduction to XML and Introduction to Active Server Pages classes. XML is becoming a fundamental piece of all middleware technologies, and ASP has been at the forefront of XML development. ASP allows real-time integration of XML data on the server, and can apply XSLT stylesheets, reference the DOM and SAX, and incorporate form data. Finally, ASP provides the perfect medium for integrating XML and database data, and students will receive a comprehensive understanding of the role of the database in XML applications.
Prerequisites• Introduction to XML
• Introduction to Active Server Pages
Next Courses• Advanced Microsoft Active Server Pages
Objectives• Utilize the MSXML 3.0 Parser
• Generate XML from database data
• Produce multiple outputs with XML, XSL, and ASP
• Master the XML DOM
• Import XML into the database
• Respond gracefully to errors
Course Outline• Introduction and Goals of the Course • Integrating ASP and XML • About Microsoft, ASP, and XML • Goals of this Course
Introduction to Server-Side XML • Review: A Client-Side XML Document • Server-Side XML Data • An Analysis of the wrapper.asp Code • Exercise 1: Completing an ASP to Evaluate an XML Document on the Server
Saving XML Output to a File • Using the File System Object • Exercise 2: Saving your HTML output as a File
Producing Multiple Output Formats with ASP and XSL • Introducing WML • Examining a WML Demonstration • Detecting the Client, Choosing Dynamically Between Outputs • Using ASP to Output XSLT to Multiple Platforms • Examining an XSL file that Generates WML • Exercise 3: Building an ASP Wrapper to Return Client-Specific Output
Dynamically Modify XSL Values • Generating Data Drill-Downs • Exercise 4: Building a Drill-down for your Menu Data • Dynamic Searching With XSL • Exercise 5: Creating a Dynamic XSL Search of your XML Data
The XML DOM • Partial Searches with the DOM • Exercise 6: Using the DOM to Search Your Menu
Parsing and Displaying an XML Hierarchy with DOM • Building a Tree Display of your XML Content • Exercise 7: Building a tree display of your menu.xml datasheet • Displaying Attributes in Our DOM Tree • Displaying Processing Instructions in Our DOM Tree • Exercise 8: Adding Detail to Your XML Tree
Adding and Modifying Nodes with DOM • Adding New Nodes to an XML Datasheet
Exercise 9: Adding a new food item to your menu • Using DOM to modify existing XML data • Exercise 10: Allowing users to modify the data in menu.xml
Outputting Database Data as XML • An Introduction to the Database for this Class • Direct Database Generation of XML • Brief Review of Connection and Recordset Objects • Note: ASP Errors in XML • Exercise 11: Outputting the dinner table as XML • Loading Database Data into a Server-Side Script • Exercise 12: Evaluating your menu database data on the server • Saving the XML You Generate from Database Data • Exercise 13: Saving your database output as XML
Building a Database Table from XML Data • Exercise 14: Importing data from your XML datasheet into the database • Representing a More Complex XML Structure in the Database • Exercise 15: Representing a complex structure with parent-child tables
Validating your XML • The parseError Object • Exercise 16: Validating your menu datasheet • An ASPApplication to Evaluate XML and XSL, and Save the Results
|
|
|
|
|