Revert "xml update"

This reverts commit 834ebd75fe07f0d78545d14def592e9aaa0812b1.
added the hidden attribute when saving xml
removed xml comments