title: Open xml cannot get a drawing element
body: <p>I am going through a docx, uscing open xml to find some images.</p>
  
  <p>So, I am doing this to get all the Drawings, that got a docProperties as child, with a title containing  </p>
  
  <pre><code>List&lt;Drawing&gt; sdtElementDrawing = wordDoc.MainDocumentPart.Document.Descendants&lt;Drawing&gt;()
                                                .Where(element =&gt;
                                                    element.GetFirstChild&lt;Drawing&gt;() != null
                                                    &amp;&amp; element.GetFirstChild&lt;DocProperties&gt;().Title.Value.Contains("IMAGE")).ToList();
  </code></pre>
  
  <p>And the docx as xml looks likes this in the first part(it is normally bigger, but I only copy the relevant part) :</p>
  
  <pre><code>&lt;w:drawing&gt;
        &lt;wp:anchor distT="0" distB="0" distL="114300" distR="114300" simplePos="0" relativeHeight="251658240" behindDoc="1" locked="0" layoutInCell="1" allowOverlap="1" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"&gt;
          &lt;wp:simplePos x="0" y="0" /&gt;
          &lt;wp:positionH relativeFrom="column"&gt;
            &lt;wp:posOffset&gt;2171700&lt;/wp:posOffset&gt;
          &lt;/wp:positionH&gt;
          &lt;wp:positionV relativeFrom="paragraph"&gt;
            &lt;wp:posOffset&gt;-1168400&lt;/wp:posOffset&gt;
          &lt;/wp:positionV&gt;
          &lt;wp:extent cx="2286000" cy="746760" /&gt;
          &lt;wp:effectExtent l="0" t="0" r="0" b="0" /&gt;
          &lt;wp:wrapNone /&gt;
          &lt;wp:docPr id="1" name="Image 1" descr="C:\Users\Pictures\IMAGERM.jpg" title="IMAGERM" /&gt;     
   &lt;/wp:anchor&gt;
      &lt;/w:drawing&gt;
  </code></pre>
  
  <p>But I don't find <code>sdtElementDrawing</code>.</p>
  
  <p>So I think I miswrote the <code>sdtElementDrawing</code> query. I must miss an obvious way to tell  "get the drawing child, where there is a DocProperties with the title like IMAGE", but I cannot find it.</p>
  
  <p>I also tried this, but doesn't work better : </p>
  
  <pre><code>                        List&lt;Drawing&gt; sdtElementDrawing = wordDoc.MainDocumentPart.Document.Descendants&lt;Drawing&gt;()
                                        .Where(element =&gt;
                                            element.GetFirstChild&lt;Drawing&gt;() != null &amp;&amp; 
                                            element.GetFirstChild&lt;Drawing&gt;().Anchor.GetFirstChild&lt;DocProperties&gt;().Title.Value.Contains("IMAGE")).ToList();
  </code></pre>