It looks like DOCTYPE declarations as outputted by XMLOutputter do not yet contain the entities that were contained in the original xml document (as read in with SAXBuilder). Is this an oversight or an intensional omission? Thanks, Gabor