<XPath>
(//. | //@* | //namespace::*)[ancestor-or-self::e6] 
</XPath>