<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Insert a Node by code</title><link>https://www.infopathdev.com:443/forums/thread/13321.aspx</link><pubDate>Wed, 06 Jul 2005 08:01:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13321</guid><dc:creator>Giovanni</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13321</wfw:commentRss><description>Thank's a lot. Now is all right.</description></item><item><title>Re: Insert a Node by code</title><link>https://www.infopathdev.com:443/forums/thread/13320.aspx</link><pubDate>Tue, 05 Jul 2005 21:42:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13320</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13320.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13320</wfw:commentRss><description>Hi Giovanni,&lt;br /&gt;Welcome to the Forum!&lt;br /&gt;XML node you are creating is "logentries" node and you are appending it to another "Logentries" node which is wrong according to your schema.&lt;br /&gt;&lt;br /&gt;If my assumption is wrong, please paste the error message here so that we can get a better idea of your problem.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Insert a Node by code</title><link>https://www.infopathdev.com:443/forums/thread/12482.aspx</link><pubDate>Tue, 05 Jul 2005 17:05:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12482</guid><dc:creator>Giovanni</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12482</wfw:commentRss><description>I tried to write a new method for insert a new node but it dosen't work. Can you help me?&lt;br /&gt;&lt;br /&gt;Here is my xml:&lt;br /&gt;&lt;br /&gt;  myFields&lt;br /&gt;     logGroup&lt;br /&gt;       logEntries&lt;br /&gt;          age&lt;br /&gt;          name &lt;br /&gt;&lt;br /&gt;Here is my code:&lt;br /&gt;&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-07-05T15:38:25"');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;  sRepeatingXml = "&amp;lt;my:logEntries xmlns:my='http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-07-05T15:38:25'&amp;gt;&amp;lt;my:name&amp;gt;NameValue&amp;lt;/my:name&amp;gt;&amp;lt;my:age&amp;gt;3&amp;lt;/my:age&amp;gt;&amp;lt;/my:logEntries&amp;gt;"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  oXml = XDocument.CreateDOM()&lt;br /&gt;  oXml.async = false;&lt;br /&gt;  oXml.loadXML(sRepeatingXml);&lt;br /&gt;    parentofRepeatingNode = getNode("/my:myFields/my:logGroup/my:logEntries");&lt;br /&gt;  parentofRepeatingNode.appendChild(oXml.documentElement);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Thank you to all...&lt;br /&gt;Bye Bye</description></item></channel></rss>