File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes how to extract data and represent it on browser 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 "how to extract data and represent it on browser" Watch "how to extract data and represent it on browser" New topic
Author

how to extract data and represent it on browser

Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
Hi,
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,
Author
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to extract data and represent it on browser