Xpath won't return a result if the element name contains a colon The following statement returns nil with Rexle: e = doc.root.element('xsl:template/channel') Yet it should return a result and I've check it with REXML. I suspect that Rexle's xpath method wasn't designed for elements containing a colon (:). rexle xpath colon