<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Modify XHTML (Rich Text) through XMLDOM using JSCRIPT</title><link>https://www.infopathdev.com:443/forums/thread/38944.aspx</link><pubDate>Wed, 25 Feb 2009 23:28:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38944</guid><dc:creator>Petronomicon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=38944</wfw:commentRss><description>&lt;p&gt;Please HELP!&lt;/p&gt;
&lt;p&gt;Trying to modify a rich text box programmatically through the DOM using Jscript.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I simply want to add a name and date to the end of the rich text box without losing the formatting. (Modifying the .text field removes all formatting)&lt;/p&gt;
&lt;p&gt;I believe that I have to create an XML navigator or node or property.&lt;/p&gt;
&lt;p&gt;All I have so far is&lt;/p&gt;
&lt;p&gt;var XMLnav = new ActiveXObject(&amp;quot;Microsoft.XMLDOM&amp;quot;);&amp;nbsp;&amp;nbsp; or&amp;nbsp; var nav = new ActiveXObject(&amp;quot;Msxml2.DOMDocument&amp;quot;);&lt;/p&gt;
&lt;p&gt;I then try this code:&lt;/p&gt;
&lt;p&gt;XMLnav.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-02-04T19:13:24&amp;quot;&amp;#39;);&lt;/p&gt;
&lt;p&gt;but the nodes are all null.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m completely lost.&lt;/p&gt;
&lt;p&gt;Thanks very much for your help!&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item></channel></rss>