bsekerci
10-13-2005, 05:52 AM
Hi,
I am new to Laszlo.
I want to know how can I display an xml data in a tree.
Dataset defined like this;
<dataset name="msg_ds" src="response.xml"/>
I can create a tree using this code:
<view width="200" height="200">
<tree datapath="msg_ds:/*" showroot="false" >
<tree datapath="*" text="$path{'name()'}"> </tree>
</tree>
</view>
The problem is: I can see only name or text of a node! How can I display both?
Thank you in advance.
bsekerci
I am new to Laszlo.
I want to know how can I display an xml data in a tree.
Dataset defined like this;
<dataset name="msg_ds" src="response.xml"/>
I can create a tree using this code:
<view width="200" height="200">
<tree datapath="msg_ds:/*" showroot="false" >
<tree datapath="*" text="$path{'name()'}"> </tree>
</tree>
</view>
The problem is: I can see only name or text of a node! How can I display both?
Thank you in advance.
bsekerci