Your comment about the invalid XML helped me locate my problem.
I had disabled the <title> tag to create a custom header. Doing that
created a gap or void that was actually required by the application for
proper output. Putting the <title> tab back corrected the error.