<?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: xsf and white space</title><link>https://www.infopathdev.com:443/forums/thread/11165.aspx</link><pubDate>Mon, 26 Feb 2007 05:38:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11165</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11165</wfw:commentRss><description>Hi Erinselena,&lt;br /&gt;&lt;br /&gt;Glad to hear you got it working. Thanks for posting your answer here.&lt;br /&gt;</description></item><item><title>Re: xsf and white space</title><link>https://www.infopathdev.com:443/forums/thread/11164.aspx</link><pubDate>Wed, 21 Feb 2007 14:18:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11164</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11164</wfw:commentRss><description>Hello Everyone&lt;br /&gt;This is what i did that worked.&lt;br /&gt;&lt;br /&gt;xDoc.PreserveWhitespace = true;</description></item><item><title>Re: xsf and white space</title><link>https://www.infopathdev.com:443/forums/thread/11163.aspx</link><pubDate>Wed, 21 Feb 2007 05:57:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11163</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11163</wfw:commentRss><description>Hi Erinselena,&lt;br /&gt;&lt;br /&gt;You have to use below the code before adding the child node.&lt;br /&gt;&lt;br /&gt;For example your chileNode value like:&lt;br /&gt;//childNode = “&amp;lt;ChildNode attribute="1"&amp;gt; &amp;lt;/ChildNode&amp;gt;”;&lt;br /&gt;&lt;br /&gt;IXMLDOMNode newChildNode = childNode.cloneNode(false);&lt;br /&gt;&lt;br /&gt;This will give the new child node with no data (without space).</description></item><item><title>xsf and white space</title><link>https://www.infopathdev.com:443/forums/thread/6079.aspx</link><pubDate>Tue, 20 Feb 2007 20:13:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6079</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6079</wfw:commentRss><description>hello everyone,&lt;br /&gt;I have kind of a wierd problem. I created a utility that will allow the user to make an update inside the manifest.xsf file, the user selects an xsn file, the program unpackages it, makes the change to the manifest.xsf file and repackages the contents back to an xsn file. Here is my problem.&lt;br /&gt;I try and open the xsn file and i get errors because there are now white spaces that the DTD file is complaining about. So if a child node within the xsf originally looks like:&lt;br /&gt;&lt;br /&gt;&amp;lt;ChildNode attribute="1"&amp;gt;&amp;lt;/ChildNode&amp;gt;&lt;br /&gt;&lt;br /&gt;it nows looks like&lt;br /&gt;&lt;br /&gt;&amp;lt;ChildNode attribute="1"&amp;gt;       &amp;lt;/ChildNode&amp;gt;&lt;br /&gt;&lt;br /&gt;and it complains because the schema doesn't recognize the format.&lt;br /&gt;&lt;br /&gt;how on earth can i prevent those white spaces being added to the xml?? here is the code i use to open the xsf, make changes and then save it back.&lt;br /&gt;&lt;br /&gt;xDoc.Load(path + MANIFEST_FILE);&lt;br /&gt;XmlNodeList nodeList = xDoc.GetElementsByTagName("xsf:adoAdapter");&lt;br /&gt;&lt;br /&gt;for (int i = 0; i &amp;lt; nodeList.Count; i++)&lt;br /&gt;{&lt;br /&gt;   nodeList&lt;i&gt;.Attributes.GetNamedItem("connectionString").InnerText = this.txtConnectionString.Text;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;xDoc.Save(path + MANIFEST_FILE);&lt;br /&gt;&lt;br /&gt;thanks</description></item></channel></rss>