*) removing doctype definition to avoid problems with xml parser

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2905 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
(no author) 18 years ago
parent a75f895884
commit 9b3fd2b9e5

@ -616,13 +616,16 @@ public class AdminService extends AbstractService {
// format them into xml
XMLFormatter formatter = new XMLFormatter();
buffer.append(formatter.getHead(logHandler));
// adding header and removing DTD definition
buffer.append(formatter.getHead(logHandler).replaceAll("<!DOCTYPE.*>", ""));
// format the logging entries
for (int i=0; i < log.length; i++) {
buffer.append(formatter.format(log[i]));
}
// adding tailer
buffer.append(formatter.getTail(logHandler));
// convert into dom

Loading…
Cancel
Save