wood burning stoves 2.0
The moose likes XML and Related Technologies and the fly likes JAXB List iterator 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 "JAXB List iterator" Watch "JAXB List iterator" New topic

JAXB List iterator


Joined: Nov 18, 2002
Posts: 13
I'm having a problem hopefully someone can help me out. I have my xml file:

My problems is that when I unmarshall the xml file, I use :

Which is fine, and gives me all my Links, then I use another for loop to get all my images. What I want to do is print out the objects as they appear in the xml file. Can I have some sort of if next is image, if next is link? Something like that?
Thanks for the help.
prashanth nagaraj
Ranch Hand

Joined: Mar 11, 2002
Posts: 43
you can try if(image!=null) or (link!=null) before going to the corresponding links

regards,<br />prashanth nagaraj
I agree. Here's the link: http://aspose.com/file-tools
subject: JAXB List iterator
It's not a secret anymore!