Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Matt on Nov 14, 2008 15:22
open dhtmlx forum
custom xml format

Hi,

I'm trying to use a custom xml format, as shown in your example, by setting the xml.top, xml.row, and xml.cell xpath expressions. In my test, I'm using the xml from your example page.

<mytop>
<myrow id="1">
    <mycell>500</mycell>
    <mycell>Time to Kill</mycell>
    <mycell>John Grisham</mycell>
</myrow>
</mytop>

I set the xpath expressions like so:

    mygrid.xml.top="mytop";
    mygrid.xml.row="./myrow";
    mygrid.xml.cell="./mycell";

In my test, the grid shows a row but it has no cell data in it. If I change the xml to this (below), it works.

<mytop>
<myrow id="1">
    <cell>500</cell>
    <cell>Time to Kill</cell>
    <cell>John Grisham</cell>
</myrow>
</mytop>

It seems to be ignoring the xml.cell setting.

I noticed in your example code, you set a custom top and row expression, but use the usual <cell> element.

Am I doing something wrong?

Many thanks!!!

Answer posted by Support on Dec 12, 2008 01:59
Problem confirmed, please try to use attached patch, it must restore correct configuration processing. 
Attachments (1)
patch.js1.33 Kb