Wrap Dom Document required elements