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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB List iterator" Watch "JAXB List iterator" New topic
Author

JAXB List iterator

Channy
Greenhorn

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
 
Similar Threads
Using NodeList
deploying servlet in jrun webserver
Rss Feed in jsp
servlets and XML
Reading in XML into Objects