User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 425,781 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,386 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 810 | Replies: 3
Reply
Join Date: Nov 2006
Posts: 49
Reputation: kobi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
kobi kobi is offline Offline
Light Poster

load an xml

  #1  
Dec 12th, 2007
How can I load an xml file and show it as a treeview control in my HTML page
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,453
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: load an xml

  #2  
Dec 15th, 2007
What you mean by treeview control?
Something like this http://www.w3schools.com/xml/note.xml?
Last edited by peter_budo : Dec 15th, 2007 at 8:19 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Nov 2006
Posts: 49
Reputation: kobi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
kobi kobi is offline Offline
Light Poster

Re: load an xml

  #3  
Dec 15th, 2007
i want to add tree view control "navigation map"
to my HTML document
the tree vuew control need to load from an XML file

Thanks
Reply With Quote  
Join Date: Mar 2006
Location: Prague
Posts: 18
Reputation: mavines is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
mavines's Avatar
mavines mavines is offline Offline
Newbie Poster

Re: load an xml

  #4  
Dec 16th, 2007
You need to parse XML file using some XML parser, I recommend JAXB, it is really flexible and object oriented. Then you have to pass parsed values into HTML - this can be done via implementing AJAX scripts on your pages (if you want live tree view) or just building static tree using loops in Java code and generating HTML to the front end.
http://f-download.com - the download portal
http://ksmhost.net - FREE or cheap, reliable hosting.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 3:02 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC