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.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206431
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

Reply via email to