Element e = (Element)n.get(i);
e.addAttribute(new Attribute("surface", e.getValue()));
}
SciXMLDocument inlineDoc = SciXMLDocument.makeFromDoc(new Builder().build(sourceFile));
Document sourceDoc = (Document)inlineDoc.copy();
PaperToScrapBook.importAnnotations(this, inlineDoc);
new Serializer(new FileOutputStream(destFile)).write(inlineDoc);
Document safDoc = InlineToSAF.extractSAFs(inlineDoc, sourceDoc, name);
SciBorgPostProcess.postProcess(safDoc, false);
SafTools.numberSaf(safDoc, "oscar", "o");