471,591 Members | 2,579 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,591 software developers and data experts.

how to store these values into the xml

132 100+
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:Durant.
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,
May 14 '08 #1
1 1979
8,656 Expert Mod 8TB
the XML structure you want is what you already descibed:
1. list
2. contact
3.a Friends
3.b Family
3.c Workers
4.a First Name
4.b Last Name

or put into XML:
Expand|Select|Wrap|Line Numbers
  1. <list>
  2.   <contact>
  3.     <friends>
  4.       <person>
  5.         <firstname>
  6.         <lastname>
  7.       </person>
  8. ...
  9.     </friends>
  10.     <family>
  11. ...
  12.     </family>
  13.     <workers>
  14. ...
  15.     </workers>
  16.   </contact>
  17. ...
  18. </list>
Aug 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by JackRazz | last post: by
7 posts views Thread by Shadow Lynx | last post: by
7 posts views Thread by thisismyidentity | last post: by
2 posts views Thread by Laszlo Nagy | last post: by
3 posts views Thread by M.-A. Lemburg | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.