title: XPath and and or syntax, any shorter way to write this Xpath
body: <p>I'm filtering a big file that contains types of shoes for children, man as wel as woman.</p>
  
  <p>Now I want to filter out certain types of woman shoes, the following xpath works but there is a xpath length limitation with the program I'm using. So I'm wondering if there a shorter / more efficient way to construct this xpath</p>
  
  <pre><code>/Products/Product[contains(CategoryPath/ProductCategoryPath,'Halbschuhe') and contains(CategoryPath/ProductCategoryPath,'Damen') or  contains(CategoryPath/ProductCategoryPath,'Sneaker') and contains(CategoryPath/ProductCategoryPath,'Damen') or contains(CategoryPath/ProductCategoryPath,'Ballerinas') and contains(CategoryPath/ProductCategoryPath,'Damen')]
  </code></pre>
  
  <p>Edit: Added requested file sample</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Products&gt;
      &lt;!-- snip --&gt;
      &lt;Product ProgramID="4875" ArticleNumber="GO1-f05-0001-12"&gt;
          &lt;CategoryPath&gt;
              &lt;ProductCategoryID&gt;34857489&lt;/ProductCategoryID&gt;
              &lt;ProductCategoryPath&gt;Damen &amp;gt; Sale &amp;gt; Schuhe &amp;gt; Sneaker &amp;gt; Sneaker Low&lt;/ProductCategoryPath&gt;
              &lt;AffilinetProductCategoryPath&gt;Kleidung &amp;amp; Accessoires?&lt;/AffilinetProductCategoryPath&gt;
          &lt;/CategoryPath&gt;
          &lt;Price&gt;
              &lt;DisplayPrice&gt;40.95 EUR&lt;/DisplayPrice&gt;
              &lt;Price&gt;40.95&lt;/Price&gt;
          &lt;/Price&gt;
      &lt;/Product&gt;
      &lt;!-- snip --&gt;
  &lt;/Products&gt;
  </code></pre>