Move xml instantiation to ElementBuilder