private void translate(Document doc, String outputName, boolean truncate) {
		Element rootElement = doc.getRootElement();
		if (rootElement == null || !rootElement.getName().equals(NODE_FAILURE_ANALYSIS)) {
			this.valid = false;
			return;
		}
		StringBuilder sb = new StringBuilder();
		sb.append(outputName).append(".ped\nS NULL 0\n0\n");
		this.eventSet = this.getBasicEventList(rootElement, truncate);

		Element top = rootElement.element(FTATranslator.NODE_ARCH_FAILURE);
		if (top == null)
			return;
		this.parseFT(top, sb, truncate);
		this.ftaContent = sb.toString();

		sb.delete(0, sb.length());
		DecimalFormat df = new DecimalFormat("0.000000E000");
		for (String eventId : this.eventSet.keySet()) {
			BasicEvent event = this.eventSet.get(eventId);
			sb.append(eventId).append(";;").append(FTATranslator.EVENT_FTA_BASIC).append('\0').append(";").append(event.desc)
					.append(";").append(df.format(event.level).replace('E', 'e')).append(";").append('\0').append(";\n");
		}
		this.pedContent = sb.toString();
	}