urllib hajosi: not well-formed (invalid token): line 3, column 46 --> -->
 
 
<type 'exceptions.NameError'>
Python 2.7.5: /usr/bin/python
Fri Apr 26 22:19:22 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/tjlahton/public_html/cgi-bin/dom/testi.cgi in ()
     28   print "urllib hajosi: " + str(e)
     29 
=>   30 for node in doc2.getElementsByTagName("item"):
     31     tr = doc.createElement("tr");
     32     td = doc.createElement("td");
node undefined, doc2 undefined

<type 'exceptions.NameError'>: name 'doc2' is not defined
      args = ("name 'doc2' is not defined",)
      message = "name 'doc2' is not defined"