There are three ways I know of to handle this.  First, change the xml
generation to not put in the empty nodes.  Second, preprocess the xml and
remove the empty nodes, and third, create a custom dataDescriptor.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of cvsikh
Sent: Sunday, January 31, 2010 4:32 AM
To: [email protected]
Subject: [SPAM] [flexcoders] filter out empty rows

 

  

Hi,

I have a dynamically generated xml which has some empty nodes. These nodes
cause blank rows in a tilelist.

Is there a way to filter out these nodes? For example, if the node 'name' is
null, hide it from the tilelist?

This is my sample xml:

<galleries>
<photo>
<source>file1.jpg</source> 
<name /> 
<desc>Desc 1</desc> 
<height>800</height> 
<width>1280</width> 
</photo>
<photo>
<source>file2.jpg</source> 
<name /> 
<desc />
<height>800</height> 
<width>1280</width> 
</photo>
</galleries>

Thanks!



Reply via email to