Updated documentation and xml pattern.