In case you don't know, a 9 pin serial port looks like a CGA port. I distinctly remember learning that the hard way as white smoke poured out of the power supply :)
It doesn't look like a CGA port ... the serial port is male and the CGA port is female (as are early VGA ports as well as the Hercules Monochrome port). Some of the XT's had DB-25 serial ports (the DB-9 serial ports were introducted with the AT) DB-25 parallel ports (so you could drive your Centronics printer).