title: Xpath expression to find values that start with
body: <p>I need an Xpath expression that will select values that start with a certain value. For this instance I am using the id field.</p>
  
  <pre><code>@id=[starts-with(name(),'value')
  </code></pre>
  
  <p>The following does not work. Is there a way to use the starts-with command with the value between the tags? Or is there another means in xpath of selecting a matching a value with a known value.</p>
  
  <p>Here is a sample of the xml I am trying to drill into:</p>
  
  <pre><code>    &lt;bean&gt;
  &lt;id&gt;AnnotationsBasedJMXAutoExporter&lt;/id&gt;
  &lt;class&gt;org.springframework.jmx.export.MBeanExporter&lt;/class&gt;
  &lt;lazy-init&gt;false&lt;/lazy-init&gt;
          &lt;property&gt;assembler
                  &lt;!-- will create management interface using annotation metadata --&gt;
      &lt;bean&gt;
  </code></pre>