Expand upon the XML pattern match example