<?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: Badly formatted XML forms</title><link>https://www.infopathdev.com:443/forums/thread/109386.aspx</link><pubDate>Fri, 03 Feb 2017 16:57:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109386</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=109386</wfw:commentRss><description>Ah, I see - yeah, I don&amp;#39;t know of a way to force InfoPath to do what you are asking - I mean, if you are finding that manually modifying the upgrade.xsl does what you need, perhaps consider using a custom code upgrade event?</description></item><item><title>Re: Badly formatted XML forms</title><link>https://www.infopathdev.com:443/forums/thread/109385.aspx</link><pubDate>Fri, 03 Feb 2017 16:50:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109385</guid><dc:creator>AlainG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=109385</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;&lt;p&gt;you&amp;#39;re right, I meant Infopath 2013, I fixed my message. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;My issue is not so much to fix the formatting when I need, I can do it with an editor as you propose or xmllint command. The point is that we manage several tens of xml forms in version control. &lt;/p&gt;&lt;p&gt;We can&amp;#39;t ask people in our team to re-format XML files after editing forms in Infopath but would like Infopath to preserve a good multiline formatting. Long lines Infopath format makes diff but also merge operations very difficult. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Alain &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Badly formatted XML forms</title><link>https://www.infopathdev.com:443/forums/thread/109382.aspx</link><pubDate>Fri, 03 Feb 2017 16:41:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109382</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109382.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=109382</wfw:commentRss><description>Hi, Alain - there isn&amp;#39;t an InfoPath 2016, so I&amp;#39;m guessing you are talking about IP 2013. I always read XML files in Notepad ++ and simply use the XML plugin to format the XML to make it more readable - Visual Studio will do the same. Can you give that a try? Or are you working in a restrictive environment where you aren&amp;#39;t allowed to install additional software? If so - you can always use an online tool like http://codebeautify.org/xmlviewer</description></item><item><title>Badly formatted XML forms</title><link>https://www.infopathdev.com:443/forums/thread/109380.aspx</link><pubDate>Fri, 03 Feb 2017 16:33:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109380</guid><dc:creator>AlainG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109380.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=109380</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using Infopath 2013. It happens that Infopath xml forms are not well formatted with long lines that includes lot of fields. It makes it painful to make a diff with a previous version of the file. I fix the formatting and indentation with command &amp;quot;xmllint --format&amp;quot;. Formatting is kept after edition in Infopath when the form is in sync with the version of the template. When editing a form that is not in sync with the template file, then saving the file (automatically updated to the last version of the template) will break again the formatting.&lt;br /&gt;&lt;br /&gt;One way to fix this behavior is to change line 3 of upgrade.xsl in the template file from&lt;br /&gt;&amp;lt;xsl:output encoding=&amp;quot;UTF-8&amp;quot; method=&amp;quot;xml&amp;quot;/&amp;gt;&lt;br /&gt;to&lt;br /&gt;&amp;lt;xsl:output encoding=&amp;quot;UTF-8&amp;quot; indent=&amp;quot;yes&amp;quot; method=&amp;quot;xml&amp;quot;/&amp;gt;&lt;br /&gt;&lt;br /&gt;then the formatting is always kept. Unfortunately, editing the template file overwrites upgrade.xsl and remove the setting for &amp;quot;indent&amp;quot;.&lt;br /&gt;&lt;br /&gt;Is there any way to preserve formatting in Infopath XML forms ?&lt;br /&gt;&lt;br /&gt;Thanks for your support,&lt;br /&gt;Alain&lt;br /&gt;</description></item></channel></rss>