<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Create instance of infopath content type in document library</title><link>https://www.infopathdev.com:443/forums/thread/70104.aspx</link><pubDate>Wed, 07 Sep 2011 18:52:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70104</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70104</wfw:commentRss><description>&lt;p&gt;Hello nollaig,&lt;/p&gt;&lt;p&gt;there are different methods to accomplish this task. One way is to create a class in C# using the XSD application.The &lt;strong&gt;XSD tool&lt;/strong&gt; is part of the .NET framework tools.&amp;nbsp;You can&amp;nbsp;use it to generate a common language class from the XSD file representation of the InfoPath&amp;nbsp;form. If you want to check out this please have a look at the following for a good sample:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.codeproject.com/KB/sharepoint/InfopathForm.aspx"&gt;http://www.codeproject.com/KB/sharepoint/InfopathForm.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Another way is to use a &lt;strong&gt;Console Application&lt;/strong&gt; and classes in the &lt;strong&gt;System.Xml&lt;/strong&gt; and 			&lt;strong&gt;System.IO&lt;/strong&gt; namespaces to programmatically generate the XML for the InfoPath form. Here is a sample for this method:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/infopath2007/programmatically-create-infopath-form-console-app.htm"&gt;http://www.bizsupportonline.net/infopath2007/programmatically-create-infopath-form-console-app.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Or you can use the &lt;strong&gt;empty xml&lt;/strong&gt; as a blank placeholder form that you can copy programmatically whenever you want. Please look at the following link for a sample.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.kindohm.com/archive/2008/01/10/programmatically-create-an-infopath-form-instance-from-xsn-template.html"&gt;http://www.kindohm.com/archive/2008/01/10/programmatically-create-an-infopath-form-instance-from-xsn-template.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Hope you will find a working solution for you...&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Create instance of infopath content type in document library</title><link>https://www.infopathdev.com:443/forums/thread/70067.aspx</link><pubDate>Tue, 06 Sep 2011 19:35:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70067</guid><dc:creator>nollaig</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70067</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a document library with a content type of an infopath form attached to it. I want to create a new document in the library using c# but not sure how to create an instance of the infopath.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers.&lt;/p&gt;</description></item></channel></rss>