I want to generate XML code using vb.net
<sample>
<?xml version="1.0" encoding="UTF-8"?>
<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:textbox-vini:-myXSD-2007-12-06T08-47-54" solutionVersion="1.0.0.1" productVersion="12.0.0" PIVersion="1.0.0.0" href="file:///C:\Documents%20and%20Settings\Vinitha_mani\My%20Documents\textbox-vini\manifest.xsf" ?>
<?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?>
<my:myFields xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-12-06T08:47:54"
xml:lang="en-us">
<my:field1></my:field1>
<my:field2>vinitha</my:field2>
</my:myFields>
This xml is created from Infopath form as a source file. Now how can i generate the same through code given that there is a textbox which is of ttype string.