Create complex DOM structure like as YAML