From: Richard C. <RC...@in...> - 2001-08-09 16:18:38
|
I'm using the Xerces DOM parser. I'm trying to execute some code that only gets the first level of children from a tree: parent | +---->child1 | | | +----->child3 | +---->child2 I only want to get child1 and child2. so what I do is: for node in parent.childNodes: if node.parentNode == parent: #do stuff in jython the '==' comparison always fails. Under Python the same code works alright. Any ideas? Thanks, Rich |