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