| |
|
|
| |
|
|
GET classes.bus.oregonstate.edu/ba471/index.htm HTTP/1.1
User-Agent:
Mozilla/4.7(WinNT; I)
Accept: image/gif, image/jpeg,
image/x-bitmap, text/html
HTTP/1.1 200 OK
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date: Thu. 25 May 2006
09:21:56 UTC
Server: Apache/1.3.12
Last-Modified: Wed. 24 May 2006
08:18:54
UTC
Content-Type: text/html
Content-Length: 6517
Example: buy a book on the Internet:
Problem: How does the server know who's who?
Set-Cookie: mysite.com_id=1234567890
Cookie: mysite.com_id=1234567890
this should be in italics and bolded
<i>this should be in italics <b>and bolded</b></i>
example: from Harold, E.R. & Means, W.S. (2001) XML in a Nutshell; O'Reilly & Associates
<collection>
<painting>
<title>Memory of the Garden at Etten</title>
<artist>Vincent van Gogh</artist>
<date>Nov. 1888</date>
<description>Two women look to the left. A third works in her garden</description>
</painting>
<painting>
<title>The Swing</title>
<artist>Pierre Auguste Renoir</artist>
<date>1886</date>
<description>Girl on a swing. Two men and a toddler watch</description>
</painting>
</collection>
For example:
<course>
<abbreviation>BA 471</abbreviation>
<section number="001">
<instructor>
<first_name>Rene</first_name>
<last_name>Reitsma<last_name>
</instructor>
<student>
<first_name>John</first_name>
<last_name>Smith<last_name>
</student>
<student>
<first_name>Mary</first_name>
<last_name>Jones<last_name>
</student>
</section >
<section number="002">
...
</section >
</course>
| XML (Harold & Means (2001),
p. 30) |
DTD |
| <person> <name> <first>Allen</first> <last>Turing</last> </name> <profession >computer scientist</profession> <profession>mathematician</profession> <profession>cryptographer</profession> </person> |
<!ELEMENT first (#PCDATA)> <!ELEMENT last (#PCDATA)> <!ELEMENT profession (#PCDATA)> <!ELEMENT name (first, last))> <!ELEMENT person (name, profession*> |