-
Hi,
Is there a better way to organize the < time > part of my XML than I'm doing? I'm just wondering if having a seperate node for each time is best practice. Is there a more efficient way to store this information?
Here's the way I have it set up:
< movie title="Spiderman" pic="images/spiderman.jpg" desc="Webslinger saves day yadda yadda" >
< theatre name="Famous Players" >
< week day="Monday" >
< time >3:15pm< /time >
< time >4:00pm< /time >
< time >4:45pm< /time >
< /week >
< /theatre >
< /movie >
-
That looks pretty clean.
With XML it is extensible and you should always think about what else you might want to do with the data in future. So I had the following thoughts:
Would you want multiple images?
Would you want description with extra tags?
Would you want multiple descriptions (taking reviews from others of the web?
Now I don't know the problem you are trying to solve but a little pre-planning now can save a lot of headaches down the track.