How to Write a Zotero Translator:
A Practical Beginners Guide for Humanists

By: Adam Crymble

Chapter 4 Answers

These are suggested answers to the Chapter 4 practice questions. Some questions have multiple solutions

  1. How many element nodes are there in this example? 37
  2. How many children does the <body> node have? 3
  3. How many great—great—grandchildren does the <body> node have? 19
  4. Describe a path to find the link to the Home Page. <html> → <body> → <a href>
  5. Describe the path to tell the computer how to find the element node containing the text "Adam Crymble". <html> → <body> → 2nd <table> → <tbody> → 2nd <tr> → 2nd <td>
  6. Describe one path to find "Day" and "Wednesday." <html> → <body> → 1st <table> → <tbody> → <tr> → 1st <td>
  7. Describe one path that will lead to all the data contained in the 2nd <table>. <html> → <body> → 2nd <table>
  8. Describe a path that will lead to all the images contained in the 2nd <table>. <html> → <body> → 2nd <table> → <tbody> → <tr> → <td> → <img src>
  9. Describe a path that will lead to only the 2nd and 3rd images in the <table>. <html> → <body> → 2nd <table> → <tbody> → 3rd <tr> → <td> → <img src>