I just realized that the method Element.getElementsByTagName("someTagName") returns a nodelist of all elements in the document that have a given tagname. What if I just want to get all child elements by tag name?
For example...
<person>
<name>Bob</name>
<car>
<name>Toyota Corolla</name>
</car>
</person>