package parserCodereview; import javax.xml.bind.annotation.XmlElement; //import javax.xml.bind.annotation.XmlRootElement; //import javax.xml.bind.annotation.XmlType; //@XmlRootElement(name = "book") // If you want you can define the order in which the fields are written // Optional //@XmlType(propOrder = { "author", "name", "publisher", "isbn" }) public class Error { private String name; private String severity; private String function; private String message; // If you like the variable name, e.g. "name", you can easily change this // name for your XML-Output: @XmlElement(name = "script") public String getName() { return name; } public void setName(String name) { this.name = name; } public String getSeverity() { return severity; } public void setSeverity(String severity) { this.severity = severity; } public String getFunction() { return function; } public void setFunction(String function) { this.function = function; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }