Preparing XPATH parser

Working on patterns: they are designed to be an efficient and
stream-able alternative to regular expressions