By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,313 Members | 2,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,313 IT Pros & Developers. It's quick & easy.

how to store these values into the xml

kaleeswaran
100+
P: 132
hi!
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:

-contact
-Friends
-Jean-Louis Durant
-Rene Norega
+Family
+Work

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,
Kaleeswaran
May 14 '08 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
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.