Adding Ryan suggested changes.

Moved item output into macro to eliminate whitespace. Trimming item and date outputs. Moved xpath filter into variable to make it easier to customize.