This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 19725

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.
Have you checked out Aspose?
subject: list children of element (jdom)
jQuery in Action, 3rd edition