XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Create an XML data model from a list of questions?

Hi Folks,

Suppose you want to create a data model about restaurants. One approach is to create a list of questions that people typically want answered when searching for a restaurant:

1. Where is the restaurant?

2. What type of food do they serve?

3. How much does it cost?

4. When are they open?

5. How to contact them?

A direct mapping from question-to-XML yields:

<Restaurants>
    <Restaurant>
        <Where-is-the-restaurant>...</Where-is-the-restaurant>
        <What-type-of-food-do-they-serve>...</What-type-of-food-do-they-serve>
        <How-much-does-it-cost>...</How-much-does-it-cost>
        <When-are-they-open>...</When-are-they-open>
        <How-to-contact-them>...</How-to-contact-them>
    </Restaurant>
    ...
</Restaurants>

Is that a reasonable approach to creating some data models - create a list of questions that users typically want answered and then directly map the questions to element names?  Have you ever followed this approach? Advantages/disadvantages?

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS