private void open(File file) throws FileNotFoundException,
XMLStreamException, FactoryConfigurationError,
DatatypeConfigurationException {
// open writer
FileOutputStream fos = new FileOutputStream(file);
writer = XMLOutputFactory.newInstance().createXMLStreamWriter(fos,
"UTF-8");
// start document
writer.setDefaultNamespace(URI_NS);
writer.writeStartDocument("UTF-8", "1.0");
writer.writeCharacters("\n");
writer.writeStartElement(URI_NS, "insights");
if (URI_NS.length() > 0) {
writer.writeDefaultNamespace(URI_NS);
}
writer.writeNamespace("html", URI_NS_XHTML);
writer.writeCharacters("\n");
// writer.writeStartElement(URI_NS, "participant");
// writer.writeCharacters(participantId);
// writer.writeEndElement();
// reset index
index = 0;
timeConv = new XmlCalendarConverter();
}
XMLInsightJournal.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:EvalBench
作者:
评论列表
文章目录