Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Paul Morin on Mar 06, 2009 06:14
open dhtmlx forum
loadxml error

When using the Folder example code I continue to get this error.


Error type: LoadXML
Description: Incorrect XML

When I run the getphotos.php script it produces an XML output like this

<?xml version="1.0" encoding="iso-8859-1" ?>
- <data>
- <item name="apple.jpg" id="0">
<filesize>15595</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="benqsiemens.jpg" id="1">
<filesize>15942</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="benqsiemens_s81.jpg" id="2">
<filesize>18637</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="fly.jpg" id="3">
<filesize>41809</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="grundig.jpg" id="4">
<filesize>25293</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="lg.jpg" id="5">
<filesize>12515</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="lg_shine.jpg" id="6">
<filesize>12438</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="motorola.jpg" id="7">
<filesize>28416</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="motorola_razr2.jpg" id="8">
<filesize>25836</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="motorola_silver.jpg" id="9">
<filesize>26762</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="nokia_6120.jpg" id="10">
<filesize>27690</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="nokia_6300.jpg" id="11">
<filesize>22213</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="nokia_95.jpg" id="12">
<filesize>21889</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="porsche.jpg" id="13">
<filesize>14163</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="se.jpg" id="14">
<filesize>17249</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="se_s500i.jpg" id="15">
<filesize>13254</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="sonyericsson_w850.jpg" id="16">
<filesize>19573</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
- <item name="sumsung_duos.jpg" id="17">
<filesize>29395</filesize>
<modifdate>2008-10-10 15-57-46</modifdate>
</item>
</data>

Does anyone have a clue what is wrong with the XML output?

Thanks

Paulie
Answer posted by Alex (support) on Mar 09, 2009 05:00

Please, check that content type is correct  - text/xml. 

Also folders require using xsl transformation. The result of this transformation must be correct xml document.