code: public String ruleMatchesToXml(List<RuleMatch> ruleMatches, String text, int contextSize,
                                   Language lang, Language motherTongue) {
      return getXmlStart(lang, motherTongue) + ruleMatchesToXmlSnippet(ruleMatches, text, contextSize) + getXmlEnd();
    }
docs: Get an XML representation of the given rule matches.
  @param text the original text that was checked, used to get the context of the matches
  @param contextSize the desired context size in characters