// if (ns.getPrefix().length() > 0) {
// item.addAttribute(new Attribute("prefix", ns.getPrefix()));
// }
// item.addAttribute(new Attribute("uri", ns.getValue()));
} else if (node instanceof DocType) {
DocType docType = (DocType) node;
Element e;
e = new Element("rootName");
e.appendChild(docType.getRootElementName());
item.appendChild(e);
if (docType.getPublicID() != null) {
e = new Element("publicID");
e.appendChild(docType.getPublicID());
item.appendChild(e);
}
if (docType.getSystemID() != null) {
e = new Element("systemID");
e.appendChild(docType.getSystemID());
item.appendChild(e);
}
if (docType.getInternalDTDSubset().length() > 0) {
e = new Element("internalDTDSubset");
e.appendChild(docType.getInternalDTDSubset());
item.appendChild(e);
}
} else { // Element, Text, Comment, ProcessingInstruction
item.appendChild(node.copy());
}