if ("xml".equals(value)) return;
if ("html".equals(value)) return;
if ("xhtml".equals(value)) return;
if ("text".equals(value)) return;
if (isValidClarkName(value)) return;
throw new DynamicError("Invalid value for serialization method: " +
"must be xml, html, xhtml, text, or a QName in '{uri}local' form");
}