Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes list children of element (jdom) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "list children of element (jdom)" Watch "list children of element (jdom)" New topic

list children of element (jdom)

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
What do I need to learn to stop on a certain element which this class can do. But I would like to work with the children of the element is finds?

Paul Clapham

Joined: Oct 14, 2005
Posts: 19508

Well, if your question is "Why isn't the processSelectedElement method being called?" then the answer is, it's because the comparison in line 94 always returns false.

It looks a bit suspicious to me, comparing the value of an attribute to a variable whose name is "attrName". So maybe there's some confusion there? I can't tell just from the code.
I agree. Here's the link:
subject: list children of element (jdom)