<?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: Submit whole XML to WebService</title><link>https://www.infopathdev.com:443/forums/thread/34775.aspx</link><pubDate>Mon, 24 Nov 2008 06:16:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34775</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34775</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;InnerXml return type is string and it contains the data as HTML nodes. It is giving the \n, \t characters. &lt;/p&gt;
&lt;p&gt;\n -&amp;gt; Specifies the followed node is start in new line.&lt;/p&gt;
&lt;p&gt;\t -&amp;gt; Specifies it will take tab space between words.&lt;/p&gt;
&lt;p&gt;While creating the node or XmlDocument it will works for us without giving any error. Above characters works like escape characters.&lt;/p&gt;</description></item><item><title>Re: Submit whole XML to WebService</title><link>https://www.infopathdev.com:443/forums/thread/34671.aspx</link><pubDate>Fri, 21 Nov 2008 12:15:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34671</guid><dc:creator>zartr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34671</wfw:commentRss><description>&lt;p&gt;InnerXML is a string.. that scared me in the first place. Also there were a lot of tabs and linebreaks in that Property (\n\t\t...).&lt;br /&gt;But it&amp;#39;s working quite fine. Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit whole XML to WebService</title><link>https://www.infopathdev.com:443/forums/thread/34600.aspx</link><pubDate>Thu, 20 Nov 2008 14:25:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34600</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34600</wfw:commentRss><description>&lt;p&gt;Hello zartr,&lt;/p&gt;
&lt;p&gt;I think this will work:&lt;/p&gt;
&lt;blockquote&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; doc = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;br /&gt;doc.LoadXml(MainDataSource.CreateNavigator().InnerXml);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Submit whole XML to WebService</title><link>https://www.infopathdev.com:443/forums/thread/34594.aspx</link><pubDate>Thu, 20 Nov 2008 13:51:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34594</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34594</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the code to get the xml document,&lt;/p&gt;
&lt;p&gt;XmlDocument newDoc = new XmlDocument();&lt;/p&gt;
&lt;p&gt;newDoc.LoadXml(&amp;quot;&amp;lt; Input XML&amp;gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;newDoc.Load(&amp;quot;&amp;lt;File Name&amp;gt;&amp;quot;);&lt;/p&gt;</description></item><item><title>Submit whole XML to WebService</title><link>https://www.infopathdev.com:443/forums/thread/34578.aspx</link><pubDate>Thu, 20 Nov 2008 12:32:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34578</guid><dc:creator>zartr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34578.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34578</wfw:commentRss><description>&lt;p&gt;When using Dataconnections I can submit the whole Xml. My web service takes an XmlDocument as an argument. That&amp;#39;s working fine.&lt;br /&gt;However I need to submit to the webservice from within code.&lt;/p&gt;&lt;p&gt;The XmlParser I wrote relies on XmlDocument. So here&amp;#39;s my question. How do get the Infopath &amp;quot;XmlDocument&amp;quot; in code behind?&lt;/p&gt;&lt;p&gt;The only way to get the data seems to be XPathNavigator xnDoc = this.MainDataSource.CreateNavigator();&lt;br /&gt;That&amp;#39;s where I&amp;#39;m stuck. I don&amp;#39;t want an XPathNavigator.. I need the whole XmlDocument :-/&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>