Hmmm.  Based on their meaning in this context, TRIM and SAMPLEDATA should really be considered mutually exclusive.. either remove or populate empty nodes?  But that should certainly be checked if nothing else.  (TRIM's probably not the best name for that flag).