The two are not the same as far as an xpath query goes.  

  http://www.openlaszlo.org/lps4.7/docs/reference/lz.grid.html

To automatically create columns based on the nodes inside <video> in your first 
case, you need `contentdatapath='video/*'` I believe.  Or you can use 
<gridcolumn> to more explicitly specify the datapath for the content of each 
column.

On May 9, 2010, at 6:43, cem sonmez <[email protected]> wrote:

> Realized that, expecting grid to behave same with the different xml
> structures is a ridiculous opinion.
> But still I have no idea how to set the grid datapath with the first
> xml. Cause it looks like more tidy than the second one. Or I will have
> to use the second xml.
> Thanks
> 
> 2010/5/9 cem sonmez <[email protected]>:
>> Hi all
>> I am referencing a xml from a jsp for the the dataset such like :
>> <dataset name="dset" id="dset" type="http" querytype="POST"
>>                src="http://localhost:5080/Red5Record/xmldocument.jsp";
>>                autorequest="true"
>>        />
>> and the xml looks like this :
>> <videos>
>>        <video/>
>>                <filename>cem.flv</filename>
>>                <date>01.05.2010</date>
>>                <size>30000</size>
>>        </video>
>>        <video filename="figen.flv" date="10.06.2010" size="44000" />
>>        <video>
>>                <filename>figen.flv</filename>
>>                <date>10.09.2010</date>
>>                <size>30000</size>
>>        </video>
>> </videos>
>> 
>> Then, I think for this grid use everything should work as expected:
>> <grid datapath="dset:/videos" contentdatapath="video">
>> In this case grid view looks like this :
>> 
>> http://www.imageshare.web.id/images/r05oxxbl97j0r29qckg.png
>> 
>> But if I send the xml like :
>> <videos>
>>        <video filename="cem.flv" date="01.05.2010" size="30000" />
>>        <video filename="figen.flv" date="10.06.2010" size="44000" />
>> </videos>
>> and donT change any other stuff, grid looks like as expected
>> 
>> http://www.imageshare.web.id/images/5wtw1pw7ndg0iqjwgge8.png
>> 
>> Do you have any idea, why grid view changes although both xmls are
>> logically the same?
>> Thanks in advance.
>> Kind regards
>> 
>> 
>> 
>> --
>> Cem SONMEZ
>> 
> 
> 
> 
> -- 
> Cem SONMEZ
> 

Reply via email to