473,395 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to store these values into the xml

kaleeswaran
132 100+
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
1 2070
Dormilich
8,658 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

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

Similar topics

7
by: Jenny | last post by:
Hi, I have a class foo which will construct some objects in my code. some of the objects store int values into the data deque, while others store float values to the deque. template <class...
8
by: JackRazz | last post by:
Is it possible to create a hashtable that doesn't store the key? I have a very large hashtable and I just want it to store the HashCode and the Value (two Int16s). Thanks - JackRazz
2
by: NWx | last post by:
Hi, Is Cache appropriate to store persistent variables used across the application? What I want is to store UserID for currently logged user, SessionID (my own SessionID, which keep track of...
0
by: Harley | last post by:
I am trying to write a personal app to keep a bank balance and history. The problem I'm haveing is finding a decent way to store the data on a pocketpc under .net compact framewok useing vb.net....
3
by: Solution Seeker | last post by:
I want to Store the String value with Single Quotes in the Field of Database where if i try to Store the String value with Single Quotes (as it is) then it is throwing the error as SQL String...
7
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though...
7
by: thisismyidentity | last post by:
Hi all, I am trying to predict the behaviour of floating point load and store operations on integer locations. I ve written a small piece of code having some inline assembly code which I am...
9
by: Ajinkya | last post by:
Hello friends ! , I am very new to java script.If anyone can help me then I will be very very thankful to his/her. I am using php and mysql in my project and I have one textarea and one...
2
by: Laszlo Nagy | last post by:
Hi, I'm working on a pivot table. I would like to write it in Python. I know, I should be doing that in C, but I would like to create a cross platform version which can deal with smaller...
3
by: M.-A. Lemburg | last post by:
On 2008-08-07 20:41, Laszlo Nagy wrote: 1 It also very fast at dumping/loading lists, tuples, dictionaries, floats, etc. -- Marc-Andre Lemburg eGenix.com
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.