xml load errors

hi,



i am trying to load an xml document and it shows the following 2 errors:



val.firstChild is null

getText()(cell)dhtmlxgridcell.js (line 176)

_fillRow()(tr.ev_light, Element 0=Subject ID 1=cell 3=cell 5=Integer)dhtmlxgrid.js (line 767)

_process_xml_row()(tr.ev_light, row)dhtmlxgrid.js (line 763)

render_row()(0)dhtmlxgrid.js (line 842)

render_dataset()(0, 21)dhtmlxgrid.js (line 835)

_process_xml()(Object xmlDoc=XMLHttpRequest async=true mainObject=Object)dhtmlxgrid.js (line 809)

load()(Object entBox=div#gridbox.gridbox _wcorr=0 _f2kE=true, null, null, null, Object xmlDoc=XMLHttpRequest async=true mainObject=Object)dhtmlxgrid.js (line 776)

waitLoadFunction()()dhtmlxcommon.js (line 15)

[Break on this error] : “”);val=val.firstChild.data};if ((val||"").toString()._dhx_trim() == “”)

dhtmlxgridcell.js (line 176)



this._fillers is undefined

_insert_before()(0)dhtmlxgr…d_srnd.js (line 11)

_add_from_buffer()()dhtmlxgr…d_srnd.js (line 10)

init()()dhtmlxgrid.js (line 66)

[Break on this error] this.load(this.xmlFileUrl+getUrlSymbol(…(f[2]);this._fillers.splice(ind,1)}else



i am loading it with the following command:

grid.loadXML("…/Views/TreesAndGridXMLs/QueryQuestionGrid_cf test occ.xml");



and i have noticed that it loads fine except when i had an xmlcontent tag for the coro cells, which of course i need to display the data. this works in other xm’s but not this one so i am very confused. here is the xml:









Question

Operator 1

Criteria 1

Operator 2

Criteria 2

Display Data Type















Subject ID









Integer







Study Numbers









Text







Sex









Text







DOB









Date











Childs diagnostic category at initial recruitment (DxRecruitment)







Equal to

Equal to



Healthy,Cystic Fibrosis





Equal to





Lookup Value







Project ID

Equal to

ALL





Lookup Name







Test Occasion ID









Integer







Test Date









Date











Child exposed to smoke in the last 24 hours? (SmE24)







Equal to









Equal to





0 or 1











Child regularly exposed to nonhousehold smoking? (SmE_Ot)







Equal to









Equal to





0 or 1











Total number of smokers living in the house (SmEnTot)







Greater than

Less than

Equal to









Greater than

Less than

Equal to





Integer







Whether mother smoked at time of test (M_Smoke)





Equal to









Equal to





0 or 1











Number of cigarettes mother currently smokes (M_SmNo)







Greater than

Less than

Equal to









Greater than

Less than

Equal to





Integer









thanks for your help

Problem caused by using



Grid expects that cell with xmlcontent attribute will have at least any content inside it.
To resolve issue - add some value to such cells, or remove xmlcontent attribute from them.

oh i see, ok thanks very much