File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes how to display data's from xml to html page 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 » HTML, CSS and JavaScript
Bookmark "how to display data Watch "how to display data New topic

how to display data's from xml to html page

Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155
i was attend one interview..almost i completed all my interview rounds.
now they given a task for final thing.
This is my task:
The Project should only consists of *.html,*.css,*.js,*.xml.
so ,i decided to store my data into xml file ...and i am going to display the data's into the html page.
now my concept is this:
i have contact list inside that i have Friends,Family,Workers.
Each list i have First Name and Last Name.
so these data's are i have to display in Tree Structure Format into the html file..
when the user Clicks the Friends ,Family,Workers folder Should close and hides contact within it.
for eg:
when the user clicks the Friends Folder the name List should display like this:

-Jean-Louis Durant
-Rene Norega

so ,
when the User Clicks Jean-Louis Durant then Two Text Fields are there In My HTML Page so First Name and Last Name display respectively.

like first Name:Jean-Louis
Last Name urant.
That's it.
Hope you all understand my situtation.
how to store into the xml file...means what is the structure.please give me some solution.
Thank you,
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

here is a link for traverse xml data using javascript. hope it helps you to move forward.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Anil Verghese:
how to store into the xml file...

is this possible to write data into xml file through javascript?
I agree. Here's the link:
subject: how to display data's from xml to html page
Similar Threads
setting up J2EE appln at home?.
Need to understanding when to use Web Services?
how to add new text field in run time?
how to give a links in xsl
Display User's Login Name from Client Machine's Environment Variable