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