def get_location(dom, location):
node = dom.documentElement<EOL>for i in location:<EOL><INDENT>node = get_child(node, i)<EOL>if not node:<EOL><INDENT>raise ValueError('<STR_LIT>' % location) <EOL><DEDENT><DEDENT>return node<EOL>
Get the node at the specified location in the dom.
Location is a sequence of child indices, starting at the children of the
root element. If there is no node at this location, raise a ValueError.