Possible Duplicate:
Need help in structuring things in XML file
-
have a structure like follows:
Question0 : What is ur name? Answer0: Tina Question0.0 : What are your hobbies? Answer0.0.0 : reading Question0.0.0.0 :What do you like in reading.? Answer0.. : ..... Answer0.0.1 : Dancing Question0.0.0.1 :which dance do you like? ........... Answer1:Roger ...........same question answer as above.
Searches:
I want to make a datastructure for the above structure which should be able to give me the parent(question) of an answer and also the parent(answer) of a question.can’t think of a solution..?
Deletion and addition:
No need to care about.
A question can have multiple answers. No, every question must have at least one answer. Yes, every question decending from an answer.
Also how I can do this structure numbering very efficiently?
I would have followup questions:
Later, you can do this