You're right. It was kind of lazy. <cf_excuse blame="flash"> But I've been working with flash a lot lately and found it easier to use attributes.ID at first than the traditional firstchildnode[0].childnodes[0].childnodes[0] etc...
Once I figured all that out I was able to do away with most of my 'attribute' entries though </cf_excuse> -----Original Message----- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 1:58 PM To: CF-Talk Subject: RE: XMLish question There are those who believe you should not use attributes in XML. That just about everything can be described using element tags. I am, sort of, one of those people. I would prefer to work with elements rather than attributes, even if it meant a few more levels of nesting. That's just the way I am. I like Ewok's structure, but I would change the attributes to elements such as: <Page> <HeaderInfo> <nodes /> </HeaderInfo> <TopNav> <NavItem> <Display>Link 1</Display> <Location>http://www.com/</Location> </NavItem> </TopNav> <LeftNav> <NavItem> <Display>Link 2</Display> <Location>http://www.com/</Location> </NavItem> </LeftNav> <MainBody> <SomeSection> <title/> <dateadded/> <bodycopy/> </SomeSection> <NewsMaybe> <NewsItem> <id>1</id> <title/> <newsdate/> <image/> <newsstory/> </NesItem> <NewsItem> <id>2</id> <title/> <newsdate/> <image/> <newsstory/> </NesItem> </NewsMaybe> </MainBody> <FooterInfo> <nodes/> </FooterInfo> </Page> -----Original Message----- From: Ewok [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 10:48 AM To: CF-Talk Subject: RE: XMLish question Of course its going to vary depending on the page and who's writing it. And even then, the original idea is most likely going to be modified even more as you get further into the project. Rather its for easier use or expansion. You'll just have to sit down and itemize your site into sections. Then itemize those sections into pieces. Here's a basic starter that I'm SURE outlook is going to make a huge mess of. Just copy and past it into DW or something else that will put the formatting back. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206440 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

