<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14884.aspx</link><pubDate>Tue, 14 Nov 2006 18:29:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14884</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14884</wfw:commentRss><description>Hi Joel Allen,&lt;br /&gt;&lt;br /&gt;Here ‘dfs#%92 is the prefix of the node. Each prefix has its own namespace. If you want to change the prefix name also we can change in code, whenever we are setting the property of DOM.&lt;br /&gt;&lt;br /&gt;Also, see this HowTo for more info on namespaces:&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you want to get more information then you can start new forum for this.</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14883.aspx</link><pubDate>Mon, 13 Nov 2006 16:02:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14883</guid><dc:creator>joelallen123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14883</wfw:commentRss><description>Mar (or Shiva),&lt;br /&gt;&lt;br /&gt;I've been following your conversation here becuase I'm trying to solve the same thing.  When you finally solved it Mar, I see that you have "dfs".  What is dfs?</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14882.aspx</link><pubDate>Mon, 13 Nov 2006 09:09:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14882</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14882</wfw:commentRss><description>I solved my problem.&lt;br /&gt;IXMLDOMNode test=thisXDocument.DOM.selectSingleNode("dfs:myFields/my:test"); &lt;br /&gt;works perfectly. &lt;br /&gt;Thanks for your help Shiva.</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14881.aspx</link><pubDate>Mon, 13 Nov 2006 07:47:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14881</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14881</wfw:commentRss><description>Well, XDocument has only 'Equals' and 'ReferenceEquals properties'. I do not why, but i think, that my problem is caused by queryFields and dataFields. In normal, blank document (not from a data connection), with this structure:&lt;br /&gt;-myFields&lt;br /&gt; |-my:test&lt;br /&gt;IXMLDOMNode test=thisXDocument.DOM.selectSingleNode("my:myFields/my:test"); works perfectly...</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14880.aspx</link><pubDate>Sat, 11 Nov 2006 11:47:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14880</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14880.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14880</wfw:commentRss><description>Hi mar,&lt;br /&gt;&lt;br /&gt;I am sorry for I had given above line code. Here is the code for setting the property of the node.&lt;br /&gt;&lt;br /&gt;XDocument.GetDOM("DOMName").setProperty("SelectionNamespaces","Namespace of the your DOM");&lt;br /&gt;&lt;br /&gt;Can you check once in debug mode if you are getting the DOM and also need to check n that DOM your node is present or not. If your node is present then you have to check once again of your field xpath.</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14879.aspx</link><pubDate>Fri, 10 Nov 2006 19:05:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14879</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14879</wfw:commentRss><description>Ther is no such method/property in thisXdocument.DOM as setProperty. And this my: prefix doesn't generate an error, any other does.</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14878.aspx</link><pubDate>Fri, 10 Nov 2006 19:02:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14878</guid><dc:creator>joelallen123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14878.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14878</wfw:commentRss><description>Hi Shiva,&lt;br /&gt;&lt;br /&gt;This did not work for me.  Is XDocument the name of the file?  Maybe that is why it's not working?  Can I send you the xsn file?  That may be faster.</description></item><item><title>Re: Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/14877.aspx</link><pubDate>Fri, 10 Nov 2006 18:04:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14877</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14877</wfw:commentRss><description>Hi mar,&lt;br /&gt;&lt;br /&gt;Can you try once this Xpath, Your Xpath should be like “/my:myFields/my:test”.&lt;br /&gt;If above Xpath also doesn#%92t work then you need to set the property of your DOM by using below code:&lt;br /&gt;&lt;br /&gt;thisXDocument.DOM.setProperty( "SelectionNamespaces", "Namespace of your DOM");&lt;br /&gt;&lt;br /&gt;After this you can try to get the node. And you need to check your Xpath once again.</description></item><item><title>Can not reach a node</title><link>https://www.infopathdev.com:443/forums/thread/12979.aspx</link><pubDate>Fri, 10 Nov 2006 14:29:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12979</guid><dc:creator>mar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12979</wfw:commentRss><description>Hello,&lt;br /&gt;i have a form from my designer, Primary datasource looks like this:&lt;br /&gt;&lt;font color="brown"&gt;-myFields&lt;br /&gt; |-queryFields&lt;br /&gt; |-dataFields&lt;br /&gt; |-my:test &lt;/font id="brown"&gt;(this is my text filed)&lt;br /&gt;and i can not, get to this, i tried:&lt;br /&gt;IXMLDOMNode test=thisXDocument.DOM.selectSingleNode("my:myFields/my:test");&lt;br /&gt;IXMLDOMNode test=thisXDocument.DOM.selectSingleNode("myFields/test");&lt;br /&gt;and so on... When i use fake namespaces, it creates an error.&lt;br /&gt;When my code is in: 'blablabla=test.text' i get &lt;br /&gt;'Object reference not set to an instance of an object'.&lt;br /&gt;What is going on in here?</description></item></channel></rss>