PDA

View Full Version : Tree Data Descriptor Example


brixel
04-24-2009, 07:55 PM
Hey guys,

Trying to get my head around the data descriptor for the tree and was hoping someone could help or point me in the right direction. I've looked over several examples, but can't figure out how to make it do what I want.

Let's say I have this XML:

<data>
<groups>
<group label="Group A">
<users>
<user label="User A" />
<user label="User B" />
</users>
</group>
<group label="Group B" />
</groups>
</data>

What I'm trying to accomplis is stripping out the <users> wrapper so it looks like this:

<data>
<groups>
<group label="Group A">
<user label="User A" />
<user label="User B" />
</group>
<group label="Group B" />
</groups>
</data>

If anyone could help I'd really appreciate it, thanks.