Presentation is loading. Please wait.

Presentation is loading. Please wait.

Presentation Topic: XML and ASP Presented by Yanzhi Zhang.

Similar presentations


Presentation on theme: "Presentation Topic: XML and ASP Presented by Yanzhi Zhang."— Presentation transcript:

1 Presentation Topic: XML and ASP Presented by Yanzhi Zhang

2 What is XML? XML stands for Extensible Markup Language XML stands for Extensible Markup Language XML is a markup language much like HTML XML is a markup language much like HTML XML is an open standard XML is an open standard XML was designed to describe data XML was designed to describe data XML tags are not predefined. You must define XML tags are not predefined. You must define Your Own Tags Your Own Tags XML uses a Document Type Definition XML uses a Document Type Definition (DTD) or an XML Schema to describe the data (DTD) or an XML Schema to describe the data

3 Simple XML Code Cindy Cindy Mike Mike Reminder Reminder Don't forget to call me this weekend! Don't forget to call me this weekend!

4 Well formed & Valid XML “Well formed” XML documents “Well formed” XML documents Conforming to the XML syntax rules Conforming to the XML syntax rules “Valid” XML documents “Valid” XML documents Well Formed and conforms to the rules of DTD Well Formed and conforms to the rules of DTD DTD stands for Document Type Definition DTD stands for Document Type Definition

5 XML and HTML Both are Standard Generalized Markup Language Both are Standard Generalized Markup Language HTML uses “Predefined tags” || XML uses ”Self- defined tags” HTML uses “Predefined tags” || XML uses ”Self- defined tags” XML is Case-Sensitive XML is Case-Sensitive XML must have a closing tag for all elements XML must have a closing tag for all elements XML does not accept overlapping tags XML does not accept overlapping tags XML is complement to HTML instead of a replacement XML is complement to HTML instead of a replacement

6 How to display XML? CSS CSS XSL XSL JavaScript JavaScript

7 Displaying XML with CSS CSS is Cascading Style Sheets CSS is Cascading Style Sheets links the XML file to the CSS file links the XML file to the CSS file CD_Catalog XML Sample code CD_Catalog XML Sample code CD_Catalog XML Sample code CD_Catalog XML Sample code

8 Displaying XML with XSL XML Stylesheet Language XML Stylesheet Language XSL consists of three parts: XSL consists of three parts: XSLT XSLT XPath XPath XSL Formatting Objects XSL Formatting Objects XSLT stands for XSL Transformations XSLT stands for XSL Transformations eg: Transform XML into HTML to display (XHTML) eg: Transform XML into HTML to display (XHTML) Food Menu sample code Food Menu sample codeFood Menu sample codeFood Menu sample code CD Catalog sample code CD Catalog sample codeCD Catalog sample codeCD Catalog sample code

9 Displaying XML with Java Script Why using Java Script? Why using Java Script? For non XSL aware browsers For non XSL aware browsers Do Browser-specific testing Do Browser-specific testing Use different style sheets according to browser Use different style sheets according to browser and user needs and user needs

10 XML Server Store XML on the server Store XML on the server Generating XML with ASP Generating XML with ASP Getting XML from a DataBase Getting XML from a DataBase

11 One XML Application Use Data Island to access xml file Use Data Island to access xml file Use JavaScript to Navigate Use JavaScript to Navigate To see how XML increase the client side processing data capabilities To see how XML increase the client side processing data capabilities Application Code Application Code Application Code Application Code

12 Why XML is good? Universal data exchange format Universal data exchange format Client-side processing and manipulation of data Client-side processing and manipulation of data Search Better Search Better Getting Precise data updates Getting Precise data updates

13 The End Thank you

14 What can you do with XML? Electronic Commerce Electronic Commerce Creating other markup languages Creating other markup languages Push Technology (Web casting) Push Technology (Web casting) Advanced Search Engine Advanced Search Engine Web-based Control systems Web-based Control systems


Download ppt "Presentation Topic: XML and ASP Presented by Yanzhi Zhang."

Similar presentations


Ads by Google