<?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>Cascading Lists Filter not filtering duplicates</title><link>https://www.infopathdev.com:443/forums/thread/61223.aspx</link><pubDate>Tue, 09 Nov 2010 20:33:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61223</guid><dc:creator>h311bender</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61223.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61223</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m currently working with InfoPath 2003 and I am trying to filter out duplicates in a Cascading list that is receiving data from an&amp;nbsp;XML file which is a secondary source.&amp;nbsp; However, I&amp;#39;m not sure of the syntax.&lt;/p&gt;
&lt;p&gt;The secondary data source is setup up as&lt;/p&gt;
&lt;p&gt;dataroot&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Departments&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Level2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I added the expression filter:&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;not(. = ../preceding::Departments/@Level1)&lt;/p&gt;
&lt;p&gt;The entries field&amp;nbsp;reads:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;/dataroot/Departments/Level1[not(. = ../preceding::Departments/@Level1)]&lt;/p&gt;
&lt;p&gt;After doing this I still see the duplicates in the menus.&amp;nbsp; I have had no problems setting this up for database and sharepoint secondary lists but can&amp;#39;t get it to work in this instance.&amp;nbsp; The syntax was a little different for each so I&amp;#39;m assuming I missing something pretty basic here.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>