if (type == Type.error) { appendErrorIfExists(xml, enclosingNamespace);
if (type == Type.error) { appendErrorIfExists(xml, enclosingNamespace);
if (type == Type.error) { appendErrorIfExists(xml, enclosingNamespace);
if (type == Type.error) { appendErrorIfExists(xml, enclosingNamespace);