Could you be more specific about what kind of suggestions you would
like?

Your XML design looks okay (with regard to vocabulary), except for the
fact that the most important information (the details of a Business)
are enclosed along with presentational markup in a CDATA tag. This
makes it nearly impossible to sort/index/search the data. Instead, I
would have separate tags such as BusinessTitle, Description/Slogan/
Tagline, Address, Phone, Fax, ContactPerson, etc. as child tags in
each Business tag.

On May 10, 2:05 am, "Barry R. Dick" <[email protected]> wrote:
> I want to make a HTML client-side (only!) application that'll use an
> XML flat file simply as a datasrc or a "data island". However, I can
> not come up with appropriate vocabulary words to define teh tagsets I
> hope to use.
>
> My current structure is as follows:
>
> <directory> // Root Element
>   <services> // Services, plural for child tag(s) 'service', each
> contain sub-child tag(s), business, referencing which business is to
> be mentioned from the businesses parent too follow.
>     <service id="0" title="" />
>     <service id="1" title="Accommodations and Lodgings">
>       <business id="1" />
>       <business id="5" />
>     </service>
>     <businesses>
>       <business id="0" title="">
>         <![CDATA[ Test ]]>
>       </business>
>       <business id="1" title="ABH Car Sales">
>         <![CDATA[
>           <h2>ABH Car Sales Ltd. </h2>
>           <p>Used car sales - we specialize in clean late model
> vehicles. Best selection of pre-owned late model vehicles in the
> Kootenays </p>
>           <p>2913 Central Avenue, Grand Forks, BC V0H 1H2<br>
>           Phone: 250-442-2363<br>
>           Fax: 250-442-2361<br>
>           Contact: Ken Lazeroff or Dave Davies</p>
>           ]]>
>     </business>
> </directory>
>
> Again, my vocabulary is very limited, and should not repeat in both
> the Services Parent Tag and the Businesses, because they both have
> very different definitions. I could not find a similar project...
>
> I'm using javascript to understand the XML... and using the
> xmlobject.data to read the CDATA related to teh business.
>
> This is much like a "Yellow Pages" directory for businesses that are
> in a collaboration with the Chamber of Commerce for the City of Grand
> Forks, BC

Reply via email to