Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/11/2007, 15:30
jotaBKM
 
Fecha de Ingreso: noviembre-2005
Mensajes: 21
Antigüedad: 18 años, 5 meses
Puntos: 1
utilizar dhtmlXGrid.js

buenas,

necesito cargar un archivo XML dentro de una grilla utilizando la libreria dhtmlXGrid.js

----------------------------------------------------------------------------------
Alarma.V.showGrilla = function (){

mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("core/imgs/");
mygrid.loadXML("xml/otraGrilla.xml");


}
------------------------------------------------------------------------------------

me sale el siguiente error:

Error Type: LoadXML
Description: Incorrect XML

por favor ayudadme... no se, a que se debe este error

este es el xml que se llama... otraGrilla y esta dento del directorio xml

-----------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<rows><head><column width='50' align='right' type='dyn' sort='str' color='white' id='null'>Sales</column><column width='150' align='left' type='ed' sort='str' color='#d5f1ff' id='null'>Book Title</column><column width='100' align='left' type='ed' sort='str' color='#d5f1ff' id='null'>Author</column><column width='80' align='right' type='price' sort='str' color='' id='null'>Price</column><column width='80' align='center' type='ch' sort='str' color='' id='null'>In Store</column><column width='80' align='left' type='co' sort='str' color='' id='null'>Shipping <option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>10</option><option value='5'>20</option><option value='6'>30</option></column><column width='80' align='center' type='ra' sort='str' color='' id='null'>Bestseller</column><column width='200' align='center' type='ro' sort='str' color='' id='null'>Date of Publication</column></head>
<row id='1' ><cell>-1500</cell><cell>A Time to Kill</cell><cell>John Grisham</cell><cell>12.99</cell><cell>1</cell><cell>24</cell><cell>0</cell><cell>05/01/1998</cell></row>
<row id='2' ><cell>1000</cell><cell>Blood and Smoke</cell><cell>Stephen King</cell><cell>0</cell><cell>1</cell><cell>24</cell><cell>0</cell><cell>01/01/2000</cell></row>
<row id='3' ><cell>-200</cell><cell>The Rainmaker</cell><cell>John Grisham</cell><cell>7.99</cell><cell>0</cell><cell>48</cell><cell>0</cell><cell>12/01/2001</cell></row>
<row id='4' ><cell>350</cell><cell>The Green Mile</cell><cell>Stephen King</cell><cell>11.10</cell><cell>1</cell><cell>24</cell><cell>0</cell><cell>01/01/1992</cell></row>
<row id='5' ><cell>700</cell><cell>Misery</cell><cell>Stephen King</cell><cell>7.70</cell><cell>0</cell><cell>na</cell><cell>0</cell><cell>01/01/2003</cell></row>
<row id='6' ><cell>-1200</cell><cell>The Dark Half</cell><cell>Stephen King</cell><cell>0</cell><cell>0</cell><cell>48</cell><cell>0</cell><cell>10/30/1999</cell></row>
<row id='7' ><cell>1500</cell><cell>The Partner</cell><cell>John Grisham</cell><cell>12.99</cell><cell>1</cell><cell>48</cell><cell>1</cell><cell>01/01/2005</cell></row>
<row id='8' ><cell>500</cell><cell>It</cell><cell>Stephen King</cell><cell>9.70</cell><cell>0</cell><cell>na</cell><cell>0</cell><cell>10/15/2001</cell></row>
<row id='9' ><cell>400</cell><cell>Cousin Bette</cell><cell>Honore de Balzac</cell><cell>0</cell><cell>1</cell><cell>1</cell><cell>0</cell><cell>12/01/1991</cell></row>
<row id='10' ><cell>-100</cell><cell>Boris Godunov</cell><cell>Alexandr Pushkin</cell><cell>7.15</cell><cell>1</cell><cell>1</cell><cell>0</cell><cell>01/01/1999</cell></row>
<row id='11' ><cell>-150</cell><cell>Alice in Wonderland</cell><cell>Lewis Carroll</cell><cell>4.15</cell><cell>1</cell><cell>1</cell><cell>0</cell><cell>01/01/1999</cell></row>
</rows>
-------------------------------------------------------------------------------------------------