rewrite goEdit method and fix bug

1. rewrite goEdit() method
2. fix 'Content is not allowed in prolog' bug