systemElement.setAttribute(A_TYPE, getTypeString(type));
root.appendChild(systemElement);
if (includeTime) {
if (created > 0) {
String message = "Create time is " + (new Date(created));
Comment comment = doc.createComment(message);
systemElement.appendChild(comment);
}
Element timeElement = null;
if (!USE_NS) {
timeElement = doc.createElement(E_ATTR);
} else {
timeElement = doc.createElementNS(NS_URI, E_ATTR);
}
timeElement.setAttribute(A_NAME, E_CREATED);
timeElement.setAttribute(A_VALUE, Long.toString(created));
systemElement.appendChild(timeElement);
if (modified > 0) {
String message = "Modified time is " + (new Date(modified));
Comment comment = doc.createComment(message);
systemElement.appendChild(comment);
}
if (!USE_NS) {
timeElement = doc.createElement(E_ATTR);
} else {