This fixed my issue.
Mark, You can just keep adding rows as well in the sub query. The last row has the XML at the end.