¡@

Home 

python Programming Glossary: child.tagname

How to efficiently store this parsed XML document in MySQL Database using Python?

http://stackoverflow.com/questions/7327924/how-to-efficiently-store-this-parsed-xml-document-in-mysql-database-using-python

in doc.childNodes if child.nodeType Node.ELEMENT_NODE and child.tagName 'bookstore' self.handleBookStore child def gettext self nodelist.. if child.nodeType Node.ELEMENT_NODE continue if child.tagName 'book' self.handleBook child def handleBook self node for child.. if child.nodeType Node.ELEMENT_NODE continue if child.tagName 'title' print Book title is self.gettext child.childNodes if..