<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Add item to list, open with content type</title><link>https://www.infopathdev.com:443/forums/thread/16536.aspx</link><pubDate>Wed, 10 Jan 2007 09:27:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16536</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=16536</wfw:commentRss><description>Hi Ekzarov, &lt;br /&gt;Your XML looks wrong. Field needs a closing tag. Also, you'll have to add a bunch of Processing Instructors to get it to open in InfoPath. The form template name, etc. Save an XML from InfoPath and open it in notepad to see the info it adds. This is also documented in the SDK I think.</description></item><item><title>Add item to list, open with content type</title><link>https://www.infopathdev.com:443/forums/thread/15520.aspx</link><pubDate>Tue, 09 Jan 2007 13:30:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15520</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15520</wfw:commentRss><description>For example in my document library I have my form template as content type for it.&lt;br /&gt;When I add an item in this library within the following code:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SPLists.Lists lists = new Lists();&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;            XmlDocument doc = new XmlDocument();&lt;br /&gt;            XmlElement updates = doc.CreateElement("Batch");&lt;br /&gt;            updates.InnerXml =  "&amp;lt;Method ID='1' Cmd='New'&amp;gt;" +&lt;br /&gt;                                "&amp;lt;Field Name='ID'&amp;gt;1&amp;lt;Field&amp;gt;"&lt;br /&gt;                                "&amp;lt;/Method&amp;gt;";&lt;br /&gt;            XmlNode node = null;&lt;br /&gt;            node = lists.UpdateListItems(listName, updates);&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;, item created seccesfully. But I want to open this item in my form template...&lt;br /&gt;Need I write something like this "&amp;lt;Field Name='ContentTypeId'&amp;gt;NameOfMyTemplate&amp;lt;Field&amp;gt;", or what should I do ???&lt;br /&gt;</description></item></channel></rss>