Fix xml document missing some code .Fixes #919 Resubmit.

The title is say so.