If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Making HTML page work with XML?

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

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

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?

Excuse these old eyes, especially early in the morning (at lest for me); you did state that this was an XML schema.

We need an xml file to read into the html not a XML schema.

Your example with the checkboxs looks for what? You don't say. Or are you trying to make the section with the checkboxes from the xml file?

I really do not know what you want. And most importantly to work with an xml file we need that xml file.

Yes... that is what I'm trying to build... This is the situation. I am building a load board which looks for certain trucks such as reefer, van, flatbed, etc. with certain specifications(attributes) such as sides, removable gooseneck, etc. I am working with another website which will push the information from their server to my server and allow my members to search for the specified critera, their XML schema shows how the equipment is mapped...

I'm going to divide the actual HTML into Equipment Types and Equipment Specs... two seperate checklists to reduce data redundancy. For example, the specs will consist of such attributes as 'pallet exchange' and 'hazmat' because multiple types of equipment can have those features and there is no point in having a dropdown for the same types of features under multiple types of equipment when I can just have them includes in equipment specs.

So I basically need to rebuild my entire page in XML? or I can have the XML elements inside the HTML?

XHTML is a subset of XML so if you use XHTML 1.0 instead of HTML 4.01 (or XHTML 5 instead of HTML 5) then you can combine it with other XML simply by including the correct references at the top of the file to identify what rules the different tags are supposed to follow.