A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [Resolved] [Resolved] reducing number of nodes

  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    69
    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 >


  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center