wrapping document node and text element