if (nameCode < 1024) {
nameLookup[nameCode] = displayName;
}
int badchar = testCharacters(displayName);
if (badchar!=0) {
throw new DynamicError("Element name contains a character (decimal + " +
badchar + ") not available in the selected encoding");
}
}
elementStack.push(displayName);
elementCode = nameCode;
try {
if (empty) {
String systemId = outputProperties.getProperty(OutputKeys.DOCTYPE_SYSTEM);
String publicId = outputProperties.getProperty(OutputKeys.DOCTYPE_PUBLIC);
if (systemId!=null) {
writeDocType(displayName, systemId, publicId);
}
empty = false;
}
if (openStartTag) {
closeStartTag(displayName, false);
}
writer.write('<');
writer.write(displayName);
openStartTag = true;
} catch (java.io.IOException err) {
throw new DynamicError(err);
}
}