Notes on the XML example 



Home

Business

Fake Website


It is difficult to debug XML tables.  For example, the code for generating the XML must use:

            if len(website) then
               Response.Write "<WEBSITE>" & website & "</WEBSITE>"
            end if

not:

            Response.Write "<WEBSITE>" & website & "</WEBSITE>"

Otherwise, IE5 will not recognize <WEBSITE /> as a valid database entry and will not load the table at all!

IE5 makes some things overly difficult.  For example, if you want to use data binding on this XML data:

<myElement myAttribute="value">element_value</myElement>

you have to work at it because IE5 auto-expands the attribute:

<myElement><myAttribute>value</myAttribute>element_value</myElement>

I'm told the solution is:

<table DATASRC="#dsodata"> DATAFLD="myElement">
<TR> <TD> <INPUT TYPE="TEXT" DATASRC="#dsodata" DATAFLD="$TEXT">
</TD></TR>...

Further, IE5 support for XML seems unreliable - I have seen the XML table example not work (empty table).  If you get something that looks like XML for the  "XML data" but no data for "XML-based Table" - the table should have worked...  If neither works - your browser does not support XML (or at least the version I used) OR the database is out-of-date...