added XML start tag

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@113 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-06-28 15:36:54 +00:00
parent a115613996
commit b8e5d2cd56

View File

@ -57,7 +57,7 @@ public class Report {
}
private String renderToXML() {
StringBuffer buf = new StringBuffer("<pmd>" + System.getProperty("line.separator"));
StringBuffer buf = new StringBuffer("<?xml version=\"1.0\"?><pmd>" + System.getProperty("line.separator"));
for (Iterator i = fileToViolationsMap.keySet().iterator(); i.hasNext();) {
String filename = (String)i.next();
List violations = (List)fileToViolationsMap.get(filename);