IS 337: Website Administration

Lecture for September 19: XML, XPath, DOM

+
-

Topics

  • DOM (Document Object Model)
    • Items, nodes, atomic values
    • Nodes: document node, element node, attribute node
    • Parent, child, sibling, ancestor, descendant
  • XML (eXtensible Markup Language)
    • Make up your own tags and attributes.
    • Nest and close properly.
  • XPath

Readings and Resources

Quick Written Assignment for Next Time

Using the department's home page write the following XPaths:

  • Find all of the divs in the body.
  • Find any tag in the body that has attribute class set to arrows
  • Find the first dl in the foot specifying the path exactly.

Creative © 2007 Calvin College and Jeremy D. Frens.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.