final PatternRule pRule = (PatternRule) match.getRule();
if (pRule.getSubId() != null) {
subId = " subId=\"" + escapeXMLForAPIOutput(pRule.getSubId()) + "\" ";
}
}
<BUG>xml.append("<error" + " fromy=\"" + match.getLine() + "\"" + " fromx=\""
+ (match.getColumn() - 1) + "\"" + " toy=\"" + match.getEndLine() + "\""
+ " tox=\"" + (match.getEndColumn() - 1) + "\"" + " ruleId=\""
+ match.getRule().getId() + "\"");
final String msg = match.getMessage().replaceAll("</?suggestion>", "'");</BUG>
xml.append(subId);

final PatternRule pRule = (PatternRule) match.getRule();
if (pRule.getSubId() != null) {
subId = " subId=\"" + escapeXMLForAPIOutput(pRule.getSubId()) + "\" ";
}
}
xml.append("<error fromy=\"").append(match.getLine()).append("\"")
.append(" fromx=\"").append(match.getColumn() - 1).append("\"")
.append(" toy=\"").append(match.getEndLine()).append("\"")
.append(" tox=\"").append(match.getEndColumn() - 1).append("\"")
.append(" ruleId=\"").append(match.getRule().getId()).append("\"");
final String msg = match.getMessage().replaceAll("</?suggestion>", "'");
