receiver.setPipelineConfiguration(pipe);
receiver.open();
receiver.startDocument(0);
c2.changeOutputDestination(null, receiver, false, getHostLanguage(), Validation.PRESERVE, null);
content.process(c2);
receiver.endDocument();
receiver.close();
DocumentInfo dtdRoot = (DocumentInfo)builder.getCurrentRoot();
SequenceIterator children = dtdRoot.iterateAxis(Axis.CHILD);
NodeInfo docType = (NodeInfo)children.next();