load an xml

Reply

Join Date: Nov 2006
Posts: 49
Reputation: kobi is an unknown quantity at this point 
Solved Threads: 0
kobi kobi is offline Offline
Light Poster

load an xml

 
0
  #1
Dec 12th, 2007
How can I load an xml file and show it as a treeview control in my HTML page
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,182
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 481
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: load an xml

 
0
  #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 9:19 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 49
Reputation: kobi is an unknown quantity at this point 
Solved Threads: 0
kobi kobi is offline Offline
Light Poster

Re: load an xml

 
0
  #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 Quick reply to this message  
Join Date: Mar 2006
Posts: 19
Reputation: mavines is an unknown quantity at this point 
Solved Threads: 1
mavines's Avatar
mavines mavines is offline Offline
Newbie Poster

Re: load an xml

 
0
  #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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC