nsgmlsOutput = os.popen("nsgmls -cCATALOG [sgml-dec] filename")
will do the trick. Use nsgmlsOutput just like a file opened for reading.
HTH
--
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com