Hello,
I am building a database which will integrate with the database of another company, they will essentially push information from their database to mine. My question has to do with XML. The database will identify different truck types that users will be able to search for when they check a box. A flatbed truck will look like this
Code:
<h1>Equipment Types</h1>
<span><input type="checkbox" name="equipment" value="flatbed">
Flatbed</span>
.......
<h1>Equipment Specifications</h1>
<label><input type="checkbox" name="specs" value="btrain">B-Train Flatbed</label>
<label><input type="checkbox" name="specs" value="sides">
With Sides</label>
So basically when the user checks the box they will select the flatbed truck and will have the choice of selecting additional specifications, however... here is an example of the xml schema for the other company that I will integrate with
Code:
<xs:element name="equipment">
<xs:complexType>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="f"> <!-- Flatbed -->
<xs:complexType>
<xs:attribute name="b-train" type="xs:boolean" default="false"/> <!-- B-train -->
<xs:attribute name="sides" type="xs:boolean" default="false"/> <!-- with Sides -->
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
Essentially, the elements are the vehicle types and the attributes are the additional specifications. Now how do I integrate that with my HTML so that when a user checks a box it selects the element and attribute to work with the database?