title: Converting a simple XPath query to an E4X query
body: <p>One might think the corresponding E4X query for the XPath query, <code>//*[@foo = "bar"]</code>, would be <code>..*.(@foo == "bar")</code>, but that will throw an error whenever it gets to an element without a foo attribute. I am currently using <code>..*.(function::valueOf().@foo == "bar")</code> instead.</p>
  
  <p>My question is if there is another, less of a hack-way to do this.</p>