renderContext.setLowercaseAttributes(prefs.getBoolean(PreferenceConstants.LOWERCASE_ATTRIBUTES));
renderContext.setLowercaseTags(prefs.getBoolean(PreferenceConstants.LOWERCASE_TAGS));
renderContext.setSpacesAroundEquals(prefs.getBoolean(PreferenceConstants.SPACES_AROUND_EQUALS));
renderContext.setSpaceInEmptyTags(true);
renderContext.setAddMissingQuotes(true);
renderContext.setDelegate(new WOHTMLRenderDelegate(prefs.getBoolean(PreferenceConstants.STICKY_WOTAGS)));
StringBuffer xmlBuffer = new StringBuffer();
FuzzyXMLDocType docType = htmlModel.getDocumentType();
if (docType != null) {
docType.toXMLString(renderContext, xmlBuffer);