protected void processDTD()
throws XMLStreamException
{
try {
String internalDTD = new String(buf, posStart, posEnd - posStart);
DTDParser dtdParser = new DTDParser(new java.io.StringReader(internalDTD));
mDtdIntSubset = dtdParser.parse();
// Get general entities
Vector v = mDtdIntSubset.getItemsByType(DTDEntity.class);
Enumeration e = v.elements();
while(e.hasMoreElements()) {
DTDEntity entity = (DTDEntity) e.nextElement();