Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958104

Anonymous
Unregistered




Re: Ask the right questions in your sur
      07/02/03 01:57 PM

I'm not sure why the author had to go with a 'hybrid' solution -- mixing hierarchical data structure with the relational. Wouldn't it be easier to simply implement the solution as a full blown hierarchical data structure? Something like the following:

<act:ActionList version='1.0' xmlns:act='http://www.good_thang.net/xmlns/ActionList'>
<act:Action type='Question'>
<act:Content value ='What type of vehicle did you purchase?'/>
<act:Explanation value='Pick your choice'/>
<act:AnswerList>
<act:Answer value='Car'/>
<act:Action type='Question'>
<act:Content value ='What type of car?'/>
<act:AnswerList>
<act:Answer value='Sport Coupe'/>
<act:Answer value='Sedan'/>
</act:AnswerList>
</act:Action>
<act:Answer value='Truck'/>
<act:Action type='Question'>
<act:Content value ='What type of truck?'/>
<act:AnswerList>
<act:Answer value='Pickup'/>
<act:Answer value='4x4'/>
</act:AnswerList>
</act:Action>
<act:Answer value='SUV'/>
<act:Action type='Question'>
<act:Content value ='What type of SUV?'/>
<act:AnswerList>
<act:Answer value='Ford Runner'/>
<act:Answer value='Passport'/>
<act:Answer value='Path Finder'/>
</act:AnswerList>
</act:Action>
</act:AnswerList>
</act:Action>
</act:ActionList>


Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Re: Ask the right questions in your sur Anonymous 07/02/03 01:57 PM
. * * Re: Ask the right questions in your sur freytag   07/09/03 03:39 PM
. * * Re: Ask the right questions in your sur Anonymous   07/10/03 08:28 PM
. * * Re: Ask the right questions in your sur psychobl   09/25/03 04:40 PM

Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:   



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 16151

Rate this thread

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5