Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 331 – Programming LanguagesDate: 4-30-08 Internet Programming Group Presenter: Aren Ray Topics: Internet Programming XML.

Similar presentations


Presentation on theme: "CS 331 – Programming LanguagesDate: 4-30-08 Internet Programming Group Presenter: Aren Ray Topics: Internet Programming XML."— Presentation transcript:

1 CS 331 – Programming LanguagesDate: 4-30-08 Internet Programming Group Presenter: Aren Ray Topics: Internet Programming XML

2 CS 331 – Programming LanguagesDate: 4-30-08 History of the World Wide Web 1990: Sir Tim Berners-Lee – CERN Sharing information among researchers World Wide Web Conference in 1994 W3C Commercialization Boom/Bust Where are we now?

3 CS 331 – Programming LanguagesDate: 4-30-08 HTTP Hypertext Transfer Protocol Purpose How it works Client (user) Request messages and URLs scheme://name:pass@addr.com:8042/subdir/file.ext;para=meter? query=item#fragment Other common schemes: https, ftp, mailto Server (website) Process and/or reply

4 CS 331 – Programming LanguagesDate: 4-30-08 History of Browser Clients 1991: WorldWideWeb 1992: Unix and Mac browsers appear 1993: Mosaic 1994: Netscape 1.0 1995: IE 1.0 introduced in Win 95

5 CS 331 – Programming LanguagesDate: 4-30-08 “Browser Wars” Netscape dominant, IE challenges Rapid-fire versions IE pulls ahead Included with Windows (then Macs) More money 1998: Antitrust Lawsuit (US v Microsoft) Settled in 2001

6 CS 331 – Programming LanguagesDate: 4-30-08 Markup Languages Standard Generalized Markup Language Metalanguage Hypertext Markup Language

7 CS 331 – Programming LanguagesDate: 4-30-08 HTML - Elements Types Structural: Presentational,, Hypertext: Attribute: Content: Bold Text

8 CS 331 – Programming LanguagesDate: 4-30-08 HTML Versions 1993: HTML 1.0 1995: HTML 2.0 Tables Image Maps Internationalization HTML 3.0 (Never Implemented) Complex Math Elements Text Flow 1997: HTML 4.0 “Flavors” Strict Transitional Frameset

9 CS 331 – Programming LanguagesDate: 4-30-08 HTML – Code Example This is the title of the page. This is a line of text. This is a URL link Bold Text List Item 1 List Item 2 Cell 1 Cell 2

10 CS 331 – Programming LanguagesDate: 4-30-08 HTML – Display Example

11 CS 331 – Programming LanguagesDate: 4-30-08 XML - Overview What is XML? Extensible Markup “Language” Specification User-defined Elements History Growth of the Web 1996: Jon Bosak Support from Microsoft 1998: W3C Recommendation Current: XML 1.0 & 1.1

12 CS 331 – Programming LanguagesDate: 4-30-08 XML – Purpose Carry vs. Display XML and HTML Doesn’t “do” anything

13 CS 331 – Programming LanguagesDate: 4-30-08 XML – Processing Files Simple API for XML Extraction Document Object Model Navigation Extensible Stylesheet Language Display/Printing

14 CS 331 – Programming LanguagesDate: 4-30-08 XML – Documents Well-Formed Documents Syntax rules Content More content Valid Documents (User-defined rules) Document Type Definition XML Schema W3C

15 CS 331 – Programming LanguagesDate: 4-30-08 XML – Example (1) Code Everyday Italian Giada De Laurentiis 2005 30.00

16 CS 331 – Programming LanguagesDate: 4-30-08 XML – Example (2) http://www.w3schools.com/xml/nodetree.gif

17 CS 331 – Programming LanguagesDate: 4-30-08 XHTML Document HTML saved in Microsoft Word <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> …

18 CS 331 – Programming LanguagesDate: 4-30-08 XHTML Page MS Office HTML file size: 2687 B Notepad HTML file size: 115 B

19 CS 331 – Programming LanguagesDate: 4-30-08 XML - Summary Generalization User-Defined Elements & Rules Stores Data Advantages Text-Based Unicode Support Hierarchical Structure Disadvantages Content Attributes Verbosity Redundancy/Inefficiency

20 CS 331 – Programming LanguagesDate: 4-30-08 XML – Future Directions Document Authoring

21 CS 331 – Programming LanguagesDate: 4-30-08 Sources http://www.w3schools.com/xml/default.asp http://en.wikipedia.org/wiki/XML http://www.ibm.com/developerworks/library/ x-xml2008prevw.html http://www.ibm.com/developerworks/library/ x-xml2008prevw.html http://www.w3.org/People/Berners- Lee/FAQ.html http://www.w3.org/People/Berners- Lee/FAQ.html


Download ppt "CS 331 – Programming LanguagesDate: 4-30-08 Internet Programming Group Presenter: Aren Ray Topics: Internet Programming XML."

Similar presentations


Ads by Google