<?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: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3072.aspx</link><pubDate>Fri, 25 Aug 2006 17:23:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3072</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3072</wfw:commentRss><description>Yes the DOM property itself is read-only... but the actual nodes you select beneath the DOM are not read-only. Subtle difference.&lt;br /&gt;&lt;br /&gt;Glad you got it worked out!</description></item><item><title>Re: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3071.aspx</link><pubDate>Thu, 24 Aug 2006 11:58:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3071</guid><dc:creator>larniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3071</wfw:commentRss><description>Thanks Greg,&lt;br /&gt;&lt;br /&gt;The DOM of the main data source can be modified, although the document says that XDocument.DOM is a read-only attribute.&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by larniel&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Greg,&lt;br /&gt;&lt;br /&gt;I looked through the InfoPath SDK document as well as InfoPath help document, but didn't get any solution.&lt;br /&gt;According to the document, DOM of the secondary data source can be got and thus nodes can be remove by the function "removeChild()".&lt;br /&gt;But if we get the DOM of the main data source by "XDocument.DOM", it is read-only, which means nodes of the DOM can't be removed.&lt;br /&gt;&lt;br /&gt;If I am not on the right way, would you be so kind enough to show me how to get the nodes of the DOM of the main data source removed?&lt;br /&gt;&lt;br /&gt;Many thanks!&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Greg Collins&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;It is possible if the nodes are set to have minOccurs="0" in the schema. If that is not the case then you will not be able to remove them. If it is the case you should be able to remove them using code.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3070.aspx</link><pubDate>Thu, 24 Aug 2006 07:14:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3070</guid><dc:creator>larniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3070.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3070</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;I looked through the InfoPath SDK document as well as InfoPath help document, but didn't get any solution.&lt;br /&gt;According to the document, DOM of the secondary data source can be got and thus nodes can be remove by the function "removeChild()".&lt;br /&gt;But if we get the DOM of the main data source by "XDocument.DOM", it is read-only, which means nodes of the DOM can't be removed.&lt;br /&gt;&lt;br /&gt;If I am not on the right way, would you be so kind enough to show me how to get the nodes of the DOM of the main data source removed?&lt;br /&gt;&lt;br /&gt;Many thanks!&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Greg Collins&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;It is possible if the nodes are set to have minOccurs="0" in the schema. If that is not the case then you will not be able to remove them. If it is the case you should be able to remove them using code.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3069.aspx</link><pubDate>Wed, 23 Aug 2006 16:31:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3069</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3069</wfw:commentRss><description>It is possible if the nodes are set to have minOccurs="0" in the schema. If that is not the case then you will not be able to remove them. If it is the case you should be able to remove them using code.</description></item><item><title>Re: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3068.aspx</link><pubDate>Wed, 23 Aug 2006 08:08:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3068</guid><dc:creator>larniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3068</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;What I want is not to modify values of the nodes, but to remove some nodes of the DOM of the main data source, is it possible?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3067.aspx</link><pubDate>Tue, 22 Aug 2006 23:04:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3067</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3067</wfw:commentRss><description>The main DOM might be read-only in specific situations (like during OnBeforeChange or OnValidate events), but in general it is not read-only as Agni says.</description></item><item><title>Re: How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/3066.aspx</link><pubDate>Tue, 22 Aug 2006 19:30:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3066</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3066</wfw:commentRss><description>DOM is not readonly. You can get the nodes from DOM and modify values of those nodes.</description></item><item><title>How to edit the DOM of the main data source?</title><link>https://www.infopathdev.com:443/forums/thread/1512.aspx</link><pubDate>Tue, 22 Aug 2006 16:11:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1512</guid><dc:creator>larniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1512</wfw:commentRss><description>According the help, DOM can be edited by function removeChild() etc.&lt;br /&gt;While the GetDOM() of XDocument object applies to the data objects which means that only DOM of secondary data source can be got by this funtion, and DOM property of XDocument object is read-only, how can I edit (mainly remove some nodes) the DOM of the main data source and get the view of the form refreshed accordingly?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>