in reply to Research App Optimization
By the way, having xxx1, xxx2 in code or data structures is often a warning sign that you might want to consider some kind of container or list structure. Also, it as useful to put effort into good naming in data models as it is for variables. If something is the answer to a question then it might be better named answer (apologies if I've misunderstood your data structure).
In your XML (and I agree with others that XML is primarily a data transfer language rather than a data storage/querying lanugage) it might be better to have:
Depending on anonymity, you might add other attributes to identify a particular <response>, such as name, date etc.<responses> <response id="1"> <answer question="1">I like cheese</answer> <answer question="2">Halloween is scary</answer> ... </response> ... </responses>
If you're writing code (or XPATH queries) to examine your original data structure, you'll end up duplicating things to look for all the different tag types.
I bring this up, because most of the same issues apply to data modelling in SQL as well, so its worth thinking about at this stage.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Research App Optimization
by sskohli (Initiate) on Nov 01, 2006 at 05:42 UTC |