<?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: Nodes</title><link>https://www.infopathdev.com:443/forums/thread/7083.aspx</link><pubDate>Wed, 06 Jul 2005 07:37:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7083</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7083</wfw:commentRss><description>Hi, I tried with AppendChild in this way:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;dim objDoc&lt;br /&gt;set objDoc = CreateObject("Msxml2.DOMDocument.5.0")&lt;br /&gt;objDoc.setProperty "SelectionNamespaces", "xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " &amp; "xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-29T14:42:29"" "&lt;br /&gt;&lt;br /&gt;stringXML="&amp;lt;my:Plant&amp;gt; .... &amp;lt;/my:Plant&amp;gt;"&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;&lt;b&gt;objDoc.loadXML(stringXML)&lt;/b&gt;&lt;/font id="red"&gt;&lt;br /&gt;objDoc.async = false&lt;br /&gt;			&lt;br /&gt;dim oParentNode&lt;br /&gt;set oParentNode = XDocument.DOM.selectSingleNode("//my:Sezione1")&lt;br /&gt;	&lt;br /&gt;dim Node&lt;br /&gt;set Node = objDoc.selectSingleNode("//my:Plant")&lt;br /&gt;oParentNode.appendChild(Node)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;but Infopath can't load stringXML becouse of "Reference to an undeclered namespace 'my'"; so I tried to change stringXML:&lt;br /&gt;&lt;br /&gt;stringXML="&amp;lt;my:Plant xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-29T14:42:29&amp;gt; .... &amp;lt;/my:Plant&amp;gt;"&lt;br /&gt;&lt;br /&gt;But this time there's another error: &lt;br /&gt;"Element '&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-29T14:42:29}Plant'&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-29T14:42:29}Plant'&lt;/a&gt; is unexpected according to content model of parent element '&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-29T14:42:29}Sezione1'."&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-06-29T14:42:29}Sezione1'."&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How can I make this code work!? :)))&lt;br /&gt;Thank you all!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Nodes</title><link>https://www.infopathdev.com:443/forums/thread/7082.aspx</link><pubDate>Tue, 05 Jul 2005 17:02:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7082</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7082</wfw:commentRss><description>ExecuteAction only works on fields physically present in the current view.&lt;br /&gt;&lt;br /&gt;AppendChild works directly on the XML and will work regardless of whether the fields are present in the current view.&lt;br /&gt;&lt;br /&gt;Which is more simple? Depends on your comfort level with each...&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Nodes</title><link>https://www.infopathdev.com:443/forums/thread/4752.aspx</link><pubDate>Tue, 05 Jul 2005 15:25:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4752</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4752</wfw:commentRss><description>Which is the simplest way to insert an XML node in a different view?&lt;br /&gt;ExcuteAction?AppendChild?</description></item></channel></rss>