<?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: appendchild</title><link>https://www.infopathdev.com:443/forums/thread/13319.aspx</link><pubDate>Wed, 13 Jul 2005 09:24:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13319</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13319</wfw:commentRss><description>Thanks a lot, you're great!</description></item><item><title>Re: appendchild</title><link>https://www.infopathdev.com:443/forums/thread/13318.aspx</link><pubDate>Tue, 05 Jul 2005 17:06:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13318</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13318.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13318</wfw:commentRss><description>Loading the XML fails because you have a back-slash instead of a forward-slash in your closing tag... should be &amp;lt;/my:Plant&amp;gt; and not &amp;lt;\my:Plant&amp;gt;.&lt;br /&gt;&lt;br /&gt;appendChild will fail because Node is probably blank due to the loadXML failure.&lt;br /&gt;&lt;br /&gt;Also, I believe you need to set the namespace on objDoc before you append it for it to work correctly.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>appendchild</title><link>https://www.infopathdev.com:443/forums/thread/12481.aspx</link><pubDate>Tue, 05 Jul 2005 08:00:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12481</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12481</wfw:commentRss><description>I want to insert a new node Plant, child of Section node. With this code I have an error in the last instruction: "Invalid procedure call or argument"...what's wrong!?!?&lt;br /&gt;&lt;br /&gt;stringXML = "&amp;lt;my:Plant&amp;gt; bla bla bla &amp;lt;\my:Plant&amp;gt;"		&lt;br /&gt;dim objDoc &lt;br /&gt;set objDoc = CreateObject("Msxml2.DOMDocument.5.0")&lt;br /&gt;set objDoc = XDocument.CreateDOM()&lt;br /&gt;objDoc.loadXML(stringXML)&lt;br /&gt;dim oParentNode&lt;br /&gt;set oParentNode = XDocument.DOM.selectSingleNode("//my:Section")&lt;br /&gt;dim Node&lt;br /&gt;set Node = objDoc.documentElement&lt;br /&gt;oParentNode.appendChild(Node)	***Error here!***&lt;br /&gt;&lt;br /&gt;Why can instruction "objDoc.loadXML(stringXML)" fail?&lt;br /&gt;I use appendChild becouse i need to insert the node in a different view. Thank you all!</description></item></channel></rss>