Api: allows to set up a root element instead of searching directly in the document