This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I am creating a menu UI. I have xml data to describe menu, submenu, subsub menu etc.... I want to extract these menu items and display it on the browser.
On the home page, i need to display only first level menu..Once i click on any first level menu, it should take me to that particular page and display second level menu under first level menu.. how do i do it?
Do i need to use xpath? or do i need to use only xml query? How do i relate second level menu to first level menu ?
my xml structure as follows:
on the browser,(home page), only File and Edit need to displayed. Once i click on file-> it should take me to another page/same page and display second_level menu->New. If i click on New, it should display all the third_level items under NEw. How do i do this? I need only the logic.... I don't want to hardcode anything...everything should be automatic.
Can any one please help me
Thanks & Regards,
subject: how to extract data and represent it on browser