Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

list children of element (jdom)

 
James Howerton
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic