XMLAttributeList attributeList = new XMLAttributeList() .addAttribute("classname", getClassName()) .addAttribute("start", String.valueOf(getStartLine())) .addAttribute("end", String.valueOf(getEndLine())) .addAttribute("startBytecode", String.valueOf(getStartBytecode())) .addAttribute("endBytecode", String.valueOf(getEndBytecode()));  if (isSourceFileKnown()) attributeList.addAttribute("sourcefile", sourceFile);  String role = getDescription(); if (!role.equals(DEFAULT_ROLE)) attributeList.addAttribute("role", getDescription());  xmlOutput.openCloseTag(ELEMENT_NAME, attributeList);
writeXML(xmlOutput, false);
	public void writeXML(XMLOutput xmlOutput) throws IOException {		XMLAttributeList attributeList = new XMLAttributeList()			.addAttribute("classname", getClassName())			.addAttribute("start", String.valueOf(getStartLine()))			.addAttribute("end", String.valueOf(getEndLine()))			.addAttribute("startBytecode", String.valueOf(getStartBytecode()))			.addAttribute("endBytecode", String.valueOf(getEndBytecode()));		if (isSourceFileKnown())			attributeList.addAttribute("sourcefile", sourceFile);		String role = getDescription();		if (!role.equals(DEFAULT_ROLE))			attributeList.addAttribute("role", getDescription());		xmlOutput.openCloseTag(ELEMENT_NAME, attributeList);	}