title: MEL XPath3 expression for attribute
body: <p>I am splitting an xml document and below is a sample</p>
  
  <pre><code>&lt;Row&gt;
      &lt;tags id="1165" name="Code_Name"&gt;pqr&lt;/tags&gt;
      &lt;tags id="1102" name="Source_Name"&gt;xxx&lt;/tags&gt;
      &lt;tags id="1176" name="Code_Value"&gt;12_M&lt;/tags&gt;
      &lt;tags id="1177" name="Code_Value_Description"&gt;Annual&lt;/tags&gt;
      &lt;tags id="1148" name="System_Control"&gt;R&lt;/tags&gt;
      &lt;tagi id="1169" name="Code_Instance"&gt;10278&lt;/tagi&gt;
      &lt;tags id="10494" name="Has_History"/&gt;
      &lt;tags id="10495" name="Obsolete"/&gt;
      &lt;tagi id="1179" name="Code_Value_Instance"&gt;1545&lt;/tagi&gt;
      &lt;tagi id="1168" name="Source_Number"&gt;4&lt;/tagi&gt;
      &lt;tags id="1106" name="Update_Date"&gt;20150821&lt;/tags&gt;
      &lt;tags id="944" name="Update_Source"&gt;abc&lt;/tags&gt;
  &lt;/Row&gt;
  </code></pre>
  
  <p>I need to extract the value of id 1165. I am trying a MEL XPath3 expression and getting errors. </p>
  
  <pre><code>#[xpath3('/Row/tags/@id='1165'')]
  </code></pre>
  
  <p>I know <code>#[xpath3('/Row/tags[1]')]</code> works but I need select based on the attribute id.
  Fragment of the flow is below.</p>
  
  <pre><code>        &lt;foreach collection="xpath3('/soapenv:Envelope/soapenv:Body/cmn:Response/Report/Level/Tab/*', payload, 'NODESET')" doc:name="For Each"&gt;
              &lt;mulexml:dom-to-xml-transformer doc:name="DOM to XML"/&gt;
              &lt;logger message="PL3  #[xpath3('/Row/tags/@id='1165'')] #[xpath3('/Row/tags[1]')]" level="INFO" doc:name="Logger"/&gt;
  &lt;/foreach&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Regards,
  Hari</p>