// This print-writer will be flushed, but not closed, as closing the underlying stream is not desired here.
final PrintWriter writer = new PrintWriter(new OutputStreamWriter(out, encoding));
final AttributeList attList = new AttributeList();
attList.addNamespaceDeclaration("", ConfigEditorBoot.NAMESPACE); //$NON-NLS-1$
final DefaultTagDescription tagDescription = new DefaultTagDescription();
tagDescription.setDefaultNamespace(ConfigEditorBoot.NAMESPACE);
tagDescription.setNamespaceHasCData(ConfigEditorBoot.NAMESPACE, false);
tagDescription.setElementHasCData(ConfigEditorBoot.NAMESPACE, "text", true);
tagDescription.setElementHasCData(ConfigEditorBoot.NAMESPACE, "description", true);
final XmlWriter dwriter = new XmlWriter(writer, tagDescription);
dwriter.writeXmlDeclaration(encoding);