<?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: Modifing rtf fields</title><link>https://www.infopathdev.com:443/forums/thread/9759.aspx</link><pubDate>Mon, 15 May 2006 12:57:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9759</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9759</wfw:commentRss><description>You must select the top-level element for insert replace or insertbefore&lt;br /&gt;&lt;br /&gt;in my example the xml is like this:&lt;br /&gt;&lt;pre&gt;&amp;lt;Root&amp;gt;&amp;lt;RTF/&amp;gt;&amp;lt;/Root&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Your error is because you try to insert not in the good place or if you try to insert an element that don't has the correct name!&lt;br /&gt;&lt;br /&gt;your error message is You can't insert testo1 in modello because your schema don't allow this!!!&lt;br /&gt;What you try to make is:&lt;br /&gt;&lt;pre&gt;&amp;lt;Modello&amp;gt;&amp;lt;testo1/&amp;gt;&amp;lt;Modello&amp;gt;&lt;/pre&gt;</description></item><item><title>Re: Modifing rtf fields</title><link>https://www.infopathdev.com:443/forums/thread/9758.aspx</link><pubDate>Mon, 15 May 2006 11:26:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9758</guid><dc:creator>fabio_si</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9758</wfw:commentRss><description>Virgul, sorry !&lt;br /&gt;&lt;br /&gt;I give this error:&lt;br /&gt;&lt;br /&gt;Elemento "testo1" imprevisto in base al modello di contenuto dell'elemento principale "&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-04-12T12:59:11}modello.&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-04-12T12:59:11}modello.&lt;/a&gt;&lt;br /&gt;</description></item><item><title>Re: Modifing rtf fields</title><link>https://www.infopathdev.com:443/forums/thread/9757.aspx</link><pubDate>Mon, 15 May 2006 09:26:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9757</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9757</wfw:commentRss><description>Sorry I work only in C# but in jcript only the name change:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMDocument2 RTFXML = (IXMLDOMDocument2)thisXDocument.CreateDOM();&lt;br /&gt;RTFXML.loadXML("&amp;lt;RTF&amp;gt;" + "your string with xthml value" + "&amp;lt;/RTF&amp;gt;");&lt;br /&gt;//The new node must have the correct markup (RTF in this case)&lt;br /&gt;IXMLDOMNode RTF = RTFXML.selectSingleNode("/RTF");&lt;br /&gt;IXMLDOMNode OldNode= thisXDocument.DOM.selectSingleNode("Root/RTF");&lt;br /&gt;//You can made a replace, a append or a insertBefore: &lt;br /&gt;thisXDocument.DOM.selectSingleNode("/Root").replaceChild(RTF(yournewIXMDOMNode), OldNode(the Old that you want to replace));&lt;br /&gt;//or&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/Root").appendChild(RTF);&lt;br /&gt;//or&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/Root").insertBefore(RTF(yournewIXMDOMNode), OldNode(the node where you  want to insert before)&lt;/pre&gt;&lt;br /&gt;</description></item><item><title>Re: Modifing rtf fields</title><link>https://www.infopathdev.com:443/forums/thread/9756.aspx</link><pubDate>Mon, 15 May 2006 07:50:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9756</guid><dc:creator>fabio_si</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9756</wfw:commentRss><description>Thank you.&lt;br /&gt;&lt;br /&gt;Can you show me an example ?&lt;br /&gt;&lt;br /&gt;Remember, I'm working in an infopath context !</description></item><item><title>Re: Modifing rtf fields</title><link>https://www.infopathdev.com:443/forums/thread/9755.aspx</link><pubDate>Mon, 15 May 2006 07:26:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9755</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9755</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;If you don't want to loose your formatting in a RTF field you must copy the node and not the value of this field with .text (string) property.&lt;br /&gt;&lt;br /&gt;For example and can use replaceNode for copy your XHTML content in a RTF.&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Modifing rtf fields</title><link>https://www.infopathdev.com:443/forums/thread/5600.aspx</link><pubDate>Sun, 14 May 2006 09:09:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5600</guid><dc:creator>fabio_si</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5600.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5600</wfw:commentRss><description>Hello !&lt;br /&gt;&lt;br /&gt;Sorry, I am Italian and I speak english very little.&lt;br /&gt;&lt;br /&gt;I work with InfoPath, but I have one problem.&lt;br /&gt;&lt;br /&gt;In Javascript, I wish modify the content in rtf fields, without lose the formatting.&lt;br /&gt;&lt;br /&gt;Using rtf fields with normal method for node xml (selectSingleNode, ecc.) it's no good !&lt;br /&gt;&lt;br /&gt;Have you same ideas ?&lt;br /&gt;&lt;br /&gt;Thank you.</description></item></channel></rss>