Status.forAbbreviation(a.getAttribute("status"))));
}
}
}
Alignment a = new Alignment(new Phrase(id,
Alignments.tokenize(first.getElementsByTagName("string").item(0).getTextContent())),
new Phrase(id,
Alignments.tokenize(second.getElementsByTagName("string").item(0).getTextContent())),
ms);
Element firstLF = (Element)first.getElementsByTagName("lf").item(0),
secondLF = (Element)second.getElementsByTagName("lf").item(0);
LFGraphDifference diff = (firstLF != null && secondLF != null)
? new LFGraphDifference(LFGraphFactory.newGraphFrom(firstLF),
LFGraphFactory.newGraphFrom(secondLF), a)
: null;
for(PhrasePosition pos : PhrasePosition.values()) {
Element str = out.createElement("string");
str.setAttribute("number", Integer.toString(id));
str.setAttribute("position", pos.name());
str.setTextContent(Alignments.untokenize(a.get(pos)));
dlfsElement.appendChild(str);
}
Element msEl = out.createElement("mappings");