<?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: *simple* Xpath question</title><link>https://www.infopathdev.com:443/forums/thread/21152.aspx</link><pubDate>Fri, 22 Jun 2007 13:11:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21152</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21152</wfw:commentRss><description>&lt;p&gt;My biggest recommendation when debugging xpaths that are supposed to work but return null is to put a breakpoint in the debugger and try to run your xpath incrementally, removing pieces from the right until it starts to return something. Then examine the resulting navigator/node/what-have-you in the watch window and try to figure out what is missing.&lt;/p&gt;&lt;p&gt;For your particular case, I *believe* that when you have an empty value in InfoPath, it actually removes the #text node instead of setting its value to &amp;#39;&amp;#39;. So in your case you will want to replace this:&lt;/p&gt;&lt;p&gt;/my:ass_ID[text()=&amp;#39;&amp;#39;]&lt;/p&gt;&lt;p&gt;with this:&lt;/p&gt;&lt;p&gt;/my:ass_ID[.=&amp;#39;&amp;#39;]&lt;/p&gt;&lt;p&gt;&lt;font size="1"&gt;&lt;font size="2"&gt;Then it should work.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>*simple* Xpath question</title><link>https://www.infopathdev.com:443/forums/thread/21150.aspx</link><pubDate>Fri, 22 Jun 2007 12:53:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21150</guid><dc:creator>erinselena</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21150.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21150</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;/p&gt;&lt;p&gt;This is going to sound silly but i can&amp;#39;t get the xpath right for this. I want to find the first node whose value is blank. Here is the xpath that i use:&lt;/p&gt;&lt;p&gt;&amp;nbsp;XPathNavigator blankNavigator = formControl1.XmlForm.MainDataSource.CreateNavigator( ).SelectSingleNode( &amp;quot;/my:myFields/my:Survey/my:Inspection/my:InspectedAssets/my:InspectedAsset/my:ass_ID[text()=&amp;#39;&amp;#39;] &amp;quot;, NamespaceManager);&lt;/p&gt;&lt;p&gt;this returns a null node although i know that there is a node in the xml that has an empty value, i just want to grab that one so i can do some stuff with it... does anyone know how to do this?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>