<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Line breaks not found in XML attribute in browser form</title><link>https://www.infopathdev.com:443/forums/thread/98106.aspx</link><pubDate>Tue, 24 Jun 2014 14:23:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98106</guid><dc:creator>gcookaustin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=98106</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am having a problem with the browser&amp;nbsp;version&amp;nbsp;of my form not being able to find line breaks in a secondary XML data source.&amp;nbsp; The XML data&amp;nbsp;is obtained using SharePoint&amp;#39;s owssvr.dll url.&amp;nbsp; My aim is to replace them in strings with &amp;lt;br&amp;gt; tags which I have confirmed display correctly in rich text boxes.&amp;nbsp; So for debugging purposes the following code will&amp;nbsp;determine whether&amp;nbsp;it encounters a line break in my ows_Note attribute:&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (iRows.Current.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;@ows_Note&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value.ToString().Contains(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;\n&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;))&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextToDisplay = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Contains newline&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;p&gt;else&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextToDisplay = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Doesn&amp;#39;t contain newline&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;I get &amp;quot;Contains newline&amp;quot; when run in the client and &amp;quot;Doesn&amp;#39;t contain newline&amp;quot; when this code runs in the browser form.&amp;nbsp; I have also tried whether it contains &lt;font size="2"&gt;System.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Environment&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NewLine, &lt;/font&gt;&amp;quot;\r&amp;quot;, &amp;quot;&amp;amp;#10&amp;quot;, &amp;quot;&amp;amp;#13&amp;quot;, &amp;quot;&amp;amp;#xA&amp;quot;, and &amp;quot;&amp;amp;#xD&amp;quot; with no success in the browser form.&amp;nbsp; I have searched for this problem but didn&amp;#39;t find any posts with the same issue...&amp;nbsp;Does anyone have any other&amp;nbsp;ideas to detect line breaks in XML in a browser form?&lt;/p&gt;&lt;p&gt;Thanks! :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>