aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "list children of element (jdom)" Watch "list children of element (jdom)" New topic
Author

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
Bartender

Joined: Oct 14, 2005
Posts: 18155
    
    8

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: http://aspose.com/file-tools
 
subject: list children of element (jdom)
 
Similar Threads
Print out values of xml tags
How read with JDOM
XML Parsing through Java
attributes
element name and cdata