DOM: How do I set up the context of multiple DOM

I need more than one dom. I can’t find a way to set the hierarchical relationship between them. I hope I can get help