{ for $Account in /Import/Accounts/Account return {$Account/SequenceNumber/text()} {$Account/FirstName/text()} {$Account/LastName/text()} {$Account/SSN/text()} {$Account/Address/text()} {$Account/City/text()} {$Account/State/text()} {$Account/Zip/text()} {$Account/AccountNumber/text()} { if( $Account/LastCommentLine1 ) then {$Account/LastCommentLine1/text()} else () } { if( $Account/LastCommentLine1 ) then {$Account/LastCommentLine2/text()} else () } { if( $Account/LastCommentLine1 ) then {$Account/LastCommentLine3/text()} else () } } (: Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved. :)