I spent a while going nuts trying to “compile the dtd”…I ended up giving up on the XML part of cloverleaf. I worte a generic TPS procedure that basically rewrites an HL7 message out as an XML document according to thier schema/dtd. Its very customized to this 1 particular interface and incredibly inefficient but it does work. Getting the message to a webservice with the HTTP-CLient protocol was no picnic either. In the end, the XML part was abandoned and now I am using a tcl object at the end of the tps to post ADT messages to a webservice. Let me know if you need more specifics.