Good day,
I've met the next problem: there are several files created from custom onet.xml. This template doesn't have section DocumentTemplates.
I tried DocTemplates property of SPWeb object but it returns read-only collection. May be another option for such task exists?