exclude null nodes from a document list

Hello guys,

What is the best practice for excluding null tags from a document list (obtained by parsing a xml file) ?

Station
-saleList
--------saleLine – null
--------saleLine ->> meets the conditional requirements
--------saleLine – null

Kind Regards,
Sil

loop over document list
branch on document / sale line
null : do not copy
default : copy to a tmp document list

map tmp document list to original document list.