Refactoring xmleditor to use view-params