<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Programatically format a richtext field.</title><link>https://www.infopathdev.com:443/forums/thread/59428.aspx</link><pubDate>Wed, 29 Sep 2010 16:29:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59428</guid><dc:creator>vamirineni87</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59428</wfw:commentRss><description>&lt;p&gt;I have figured it out.&lt;/p&gt;&lt;p&gt;rather than first child, i referenced it with an array. (newbie mistakes :-)&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;node.appendChild(xmlRichText.firstChild) &lt;/p&gt;&lt;p&gt;node.appendChild(xmlRichText.childnodes(0))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Programatically format a richtext field.</title><link>https://www.infopathdev.com:443/forums/thread/59401.aspx</link><pubDate>Tue, 28 Sep 2010 21:18:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59401</guid><dc:creator>vamirineni87</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59401</wfw:commentRss><description>&lt;p&gt;I am using Infopath 2003 with VBScript. I have a rich text field that I populate from an XML source.&lt;/p&gt;&lt;p&gt;Currently when I load it using .text method, the html formatting tags show up, rather than the actual formatting. &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I found a few tutorials online, but they didnot help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://us.generation-nt.com/answer/how-set-rich-text-content-xhtml-control-using-vbscript-help-73846842.html &lt;/p&gt;&lt;p&gt;xhtml= &amp;quot;&amp;lt;myns xmlns=&amp;quot;+ chr(34)+ &amp;quot;&lt;a href="http://us.generation-nt.com/redirect.html?url=A2wHdgZ0ViEHaAZ7CSlXI1UiUiNQewBxUzMJcAc9BHpRMQUvUmVUalc7CGMPLwJ5UzsFdwRsB20PelJ0ASFWNQNwBzkGK1YyBzoGJg%3D%3D" class="gnt1FC1434B46C14342CB1945CB4E482FC3C1482EBA21CCB54B4C3D203446B3B54ABA3D2CB2324835B62A33463346B93A43CCB1C533CDBEBD42BA4226B1B5C031BE3A33C4334E34334A48422CB2BCBE30B8CCBD2333CDC2B44BCC31C2B12120304348BD20BA32B43CB93AB9CCB1CD47BCB72A36C6B1CD4FBCBD4C1322BB1322BB ggnt targetblank" target="_blank"&gt;http://www.w3.org/1999/xhtml&amp;quot;+chr&lt;/a&gt;(34)+&amp;quot;&amp;gt;&amp;quot; +xhtml + &amp;quot;&amp;lt;/myns&amp;gt;&amp;quot;&lt;br /&gt;
set xmlRichText=CreateObject(&amp;quot;MSXML2.DOMDocument.5.0&amp;quot;)&lt;br /&gt;
xmlRichText.async=&amp;quot;false&amp;quot;&lt;br /&gt;
xmlRichText.loadXML(xhtml)&lt;br /&gt;
Set  node= XDocument.DOM.documentElement.SelectSingleNode(&amp;quot;/my:myFields/my:myRichText&amp;quot;)&lt;br /&gt;
node.appendChild(xmlRichText.&lt;b&gt;firstChild&lt;/b&gt;) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;reason it didnot work - infopath 2003 doesnot have innerchild/firstchild method in jscript or vbscript &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is there way to format the rich text field with XHTML (using vbscript)?&lt;/p&gt;&lt;p&gt;thanks in advance &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>