Fix xml document missing some code .Fixes #919
Merge pull request #650 from sjbwylbs/master

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