Categories | Question details Back To List | ||
DHMLXGRID loadXML problem The grid working fine, but when I try to load data from XML shows Error type: LoadXML Description: Incorrect XML What I'm doing wrong... I did open the XML file in IE, it's perfectly there. Here is my code: GRIDRECEBERg = new dhtmlXGridObject('MGRIDGRIDRECEBER'); GRIDRECEBERg.imgURL = "../files/dhtmlxGrid/codebase/imgs/"; GRIDRECEBERg.setHeader("idpagar,Vencimento,Documento,Nome do cliente,Emissão,Valor,Saldo,Observações"); GRIDRECEBERg.setInitWidths("0,100,100,300,100,100,100,100"); GRIDRECEBERg.setColAlign("left,left,left,left,left,right,right,left"); GRIDRECEBERg.setColTypes("ed,ed,ed,ed,ed,ed,ed,ed"); GRIDRECEBERg.setColSorting("str,date,str,str,date,int,int,str"); GRIDRECEBERg.setSkin(G_SKIN_GRID); GRIDRECEBERg.setEditable(false); GRIDRECEBERg.enableEditEvents(false,false,false); GRIDRECEBERg.attachEvent('onRowDblClicked',doOnRowDblClickedGRIDRECEBER); GRIDRECEBERg.enableColumnMove(true); GRIDRECEBERg.enableAutoSizeSaving(); GRIDRECEBERg.init(); GRIDRECEBERg.enableSmartRendering(true); GRIDRECEBERg.loadXML('file.xml'); Here is my xml File: <?xml version="1.0" encoding="ISO-8859-1" ?> <rows> <row id="5C4379F9-6036-4467-9934-8094CEA1355E"> <cell>5C4379F9-6036-4467-9934-8094CEA1355E</cell> <cell>16/07/2002</cell> <cell>G135</cell> <cell>EUSTAQUIO PEDRO BRAGA</cell> <cell>15/07/2002</cell> <cell>139,02</cell> <cell>139,02</cell> <cell>P-00000168</cell> </row> <row id="74276C13-F24E-483A-AD57-C8D1D8F1A0B5"> <cell>74276C13-F24E-483A-AD57-C8D1D8F1A0B5</cell> <cell>16/07/2002</cell> <cell>001281</cell> <cell>FARMACIA CRUZEIRO LTDA</cell> <cell>15/07/2002</cell> <cell>68,40</cell> <cell>68,40</cell> <cell>P-00000170</cell> </row> </rows> Answer posted by dhxSupport on Feb 25, 2009 05:33 Your xml is rendered without errors. Please make sure that you have specify the right path to the xml file. |