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) ?

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

Kind Regards,

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.