Oregon State University
Oregon State University Home Page
 

The Web: HTTP, HTML, XML and Web Services


HyperText Transfer Protocol (HTTP)

http://classes.bus.oregonstate.edu/ba471/index.htm


eXtensible Markup Language (XML) and Web services

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*>



<!DOCTYPE person [
  <!ELEMENT first (#PCDATA)>
  <!ELEMENT last (#PCDATA)>
  <!ELEMENT profession (#PCDATA)>

  <!ELEMENT name (first, last))>
  <!ELEMENT person (name, profession*>
]>

<person>

  <name>
    <first>Allen</first>
    <last>Turing</last>
  </name>

  <profession >computer scientist</profession>
  <profession>mathematician</profession>
  <profession>cryptographer</profession>

</person>

<!DOCTYPE person SYSTEM "http://www.mywebsite.com/person.dtd">
<person>

  <name>
    <first>Allen</first>
    <last>Turing</last>
  </name>

  <profession >computer scientist</profession>
  <profession>mathematician</profession>
  <profession>cryptographer</profession>

</person>