xpath/regex/type/encoding parameters are optional