L15-XML - Session 15 XML Internet Commerce Programming...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Session 15 – XML Internet Commerce Programming 11/7/2010 1 © Robert Kelly, 2001-2010 Session 15 XML 1 XML Reading and Reference Reading XML in a Nutshell (Ch. 1-3), available in Safari On-line J2EE Tutorial (Chapter 2) JavaWorld XML tutorial: www.javaworld.com/javaworld/jw-04-1999/jw-04-xml_p.html Book chapter, describes how to design an xml document that will later be used to generate html www.phptr.com/articles/article.asp?p=170571&seqNum=1 Reference: W3C General spec of Document Object Model– © Robert Kelly, 2001-2010 2 www.w3.org/TR/DOM-Level-2/core.html XML Glossary – www.javaworld.com/javaworld/jw-09-2002/jw-0927- xmlglossary.html
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Session 15 – XML Internet Commerce Programming 11/7/2010 2 © Robert Kelly, 2001-2010 Lecture Objectives Understand the goal of application specific markup languages Understand XML as a meta language that defines application specific languages Understand general concept of tree-structured access to an XML document © Robert Kelly, 2001-2010 3 Be familiar with DTDs as a way of defining the rules of an XML document HTML Limitations GIF Web servers Web browsers HTML HTML © Robert Kelly, 2001-2010 4 HTML LAN GIF
Background image of page 2
Session 15 – XML Internet Commerce Programming 11/7/2010 3 © Robert Kelly, 2001-2010 HTML Limitations Not extensible (unless you are Microsoft) Intended for display (not processing) Appearance information is intertwined with content information Working HTML is rarely syntactically correct No way to specify the meaning of data © Robert Kelly, 2001-2010 5 © Robert Kelly, 2001-2010 6
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Session 15 – XML Internet Commerce Programming 11/7/2010 4 © Robert Kelly, 2001-2010 Example – HTML Code <HTML> <HEAD> <TITLE>Lime Jello Marshmallow Cottage Cheese Surprise</TITLE> </HEAD> <BODY> <H3>Lime Jello Marshmallow Cottage Cheese Surprise</H3> <U>My grandma's favorite (may she rest in peace.)</U> <H4>Ingredients</H4> <TABLE BORDER="1"> <TR BGCOLOR="#308030"> <TH>Qty</TH> <TH>Units</TH> <TH>Item</TH></TR> <TR> <TD>1</TD> <TD>box</TD> <TD>lime gelatin</TD></TR> <TR> <TD>500</TD> <TD>g</TD> <TD>multicolored tiny marshmallows</TD></TR> <TR> <TD>500</TD> <TD>ml</TD> <TD>Cottage cheese</TD></TR> <TR> <TD BGCOLOR="#404040"/> <TD>dash</TD> <TD>tabasco sauce <SPAN> -- <i><u>optional</u></i></SPAN></TD></TR> </TABLE> <H4>Instructions</H4> <OL> <LI>Prepare lime gelatin according to package instructions. ..</LI> </OL> </BODY> </HTML> Recipe - Tasks That Would be Difficult Directly manipulate the recipe object in your server program to: Aggregate information about multiple recipes Build a shopping list Convert from grams/liters to ounces/quarts © Robert Kelly, 2001-2010 8
Background image of page 4
Session 15 – XML Internet Commerce Programming 11/7/2010 5 © Robert Kelly, 2001-2010 Electronic Commerce Vision New EC applications are possible when all applications on all platforms interact Product finders Billing data (invoices, purchase orders) Medical records
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 15

L15-XML - Session 15 XML Internet Commerce Programming...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online