*Please* help me, I am going nuts!!

I can traverse an XML document and get the values no bother but I also require
to produce an XML document. I can also do this no bother but I require it
to be structured (which I cannot do) like:

<parent>
<complexType>
<forename>Joe</forename>
<middle/>
<surname>Bloggs</surname>
</complexType>
<parent>

I can only get everything on the same level as the parent tag. Any help/pointers
very very much appreciated - I am using the following:

VB 6.0 Service Pack 4
Microsoft Parser Novermber 2000 Release (msxml3.dll)

Regards

Colin