Lecture overview -- Keyboard shortcut: 'u'  Previous page: XML-in-LAML abstractions -- Keyboard shortcut: 'p'  Next page: Another way to query HTML documents -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Slide 19 : 26

How to query HTML documents
LAML supports a number of simple tree traversal functions that can extract information from HTML documents
(define doc
 (html 
  (head 
   (title "Table Examples"))
  (body 
    (p 'id "5" "First paragraph") 
    (p (em "Second") "paragraph")
    (div
      (p "Third paragraph")))))