<?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: Casting from XmlDocument to XDocument</title><link>https://www.infopathdev.com:443/forums/thread/61584.aspx</link><pubDate>Sat, 20 Nov 2010 14:48:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61584</guid><dc:creator>mstaples709</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61584.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61584</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;I am trying to use the replaceChild&amp;nbsp;method, so need to pass it 2 IXMLDOMNode parameters (newChild, oldChild).&amp;nbsp; The nodes from the XmlDocument would be the newChild and the existing nodes in the XDocument (i.e. thisXDocument) are&amp;nbsp;the oldChild.&amp;nbsp; So, really, I need a way to get&amp;nbsp;at the XmlDocument nodes and cast them to an IXMLDOMNode, but I assume that I need to go through an XDocument&amp;nbsp;first.&amp;nbsp; I have done this in InfoPath 2007&amp;nbsp;and it was much easier, but of course IP 2003&amp;#39;s object model is very different.&lt;/p&gt;
&lt;p&gt;Let me know if you need further details.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Casting from XmlDocument to XDocument</title><link>https://www.infopathdev.com:443/forums/thread/61582.aspx</link><pubDate>Sat, 20 Nov 2010 01:15:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61582</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61582.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61582</wfw:commentRss><description>&lt;p&gt;What is it you are trying to accomplish, specifically?&lt;/p&gt;</description></item><item><title>Casting from XmlDocument to XDocument</title><link>https://www.infopathdev.com:443/forums/thread/61567.aspx</link><pubDate>Fri, 19 Nov 2010 18:40:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61567</guid><dc:creator>mstaples709</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=61567</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am developing an InfoPath 2003 template with C# code behind and am trying to cast from&amp;nbsp;System.Xml.XmlDocument() to&amp;nbsp;Microsoft.Office.Interop.InfoPath.Semitrust.XDocument().&amp;nbsp; So far, I have had no luck finding any examples of how to do this.&amp;nbsp; I believe someone wrote a post about casting to System.Xml.Linq.XDocument(), but unfortunately this does not seem to work for the InfoPath XDocument().&amp;nbsp; If you need a code snippet, let me know.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;</description></item></channel></rss>