Notes following a quick look at table of contents.
It depends whether you want a complete generated TOC, or just the TOC field code (which means using Word to generate the TOC from the field code: either by pressing Ctrl-F9, or using a macro to automate that, or printing).
The TOC field code is simple enough; its just:
<w:p>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> TOC \o "1-3" \h \z \u </w:instrText>
</w:r> ...