Uncaught TypeError loading grid in Chrome

We have a .jsp page (p8lookup.jsp) that displays data using the DHTMLXGrid and it works fine with I.E. but errors with ‘Uncaught TypeError: Cannot call method ‘getAttribute’ of undefined’ when using Chrome.
I have simplified it so it loads XML data from a static file, sampledata4.xml. The data is processed using the stylesheet list.xsl, which uses the #RowsetSchema and uses the tags rs:data and <z:row>. The DHTMLXGrid samples from this web site display correctly in the Chrome browser (which is version 20.0.1132.57)
Has anyone seen anything like this before?
I include the code from the 3 files below in case anyone can spot anything that Chrome objects to (I will also attach the source files)…


<?xml version="1.0" encoding="ISO-8859-1" ?>

<xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace

<xsl:output method=“html” />

<xsl:template match=“/”>


<xsl:variable name=“href”>getContent?ut=<xsl:value-of select=“/param/ut”/>objectStoreName=BNHFT_Library;id=<xsl:value-of select=“.”/>objectType=document</xsl:variable>
<xsl:variable name=“prophref”>integrationWebBasedCommand?ut=<xsl:value-of select=“/param/ut”/>;objectType=document;id=<xsl:value-of select=“.”/>;objectStoreName=Library;_commandId=3010</xsl:variable>




<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="./list.xsl"?>
	<s:AttributeType name ='DocumentClass' rs:number= '2'>
		<s:datatype dt:type='string' dt:maxLength='' />

	<s:AttributeType name ='Specialty' rs:number= '3'>
		<s:datatype dt:type='string' dt:maxLength='' />

	<s:AttributeType name ='RecordType' rs:number= '4'>
		<s:datatype dt:type='string' dt:maxLength='' />
	<s:AttributeType name ='RecordDate' rs:number= '5'>
		<s:datatype dt:type='string' dt:maxLength=''  />
	<s:extends type='rs:rowbase' />

<z:row id=‘q’ DocumentClass=‘{FBD0B11A-4D0F-4C38-8A70-23BD30FB762F}’ Specialty=‘Gyneacology’ RecordType=‘test’ RecordDate=‘2011-12-22T00:00:00.000Z’ />


<% String HospNo=request.getParameter(“HospNo”); %>

Clear Filters
p8lookup.zip (120 KB)

After a lot of testing I managed to find the solution, in case anyone else has similar problems with the Chrome browser…

Firstly, although I.E. is okay with
mygrid.xml.top = “param/xml/rs:data”;
mygrid.xml.row = “./z:row”;
Chrome seems to want only a single tag in .top. Also it didn’t like the colon as part of the tag, so I processed my XML to change to simpler tags
mygrid.xml.top = “param”;
mygrid.xml.row = “./xml/rows/row”;
and it is happy to load the data into the grid

I also found that I.E. can use the

tag on its own but Chrome cannot. So I put it between tags and it works fine!