[Zope] nXMLDocument

Chad Nantais cnantais@rednaxel.com
Thu, 30 May 2002 10:00:11 -0400


Has anyone figured out how to adapt the nXMLDocument product to work 
with Zope running on unix using 4suite for xml processing?

Here is the meat of the product, which needs to be changed to work with 
4suite.  I would like to know what I have to change.  I'm sure it's 
nothing major, likely just some syntax, but python xml is new to me.


----/ nXMLDocument.py /----
.
.
.
import pythoncom
from win32com.client import Dispatch
.
.
.
def ProcessStrings(self,xsl='',xml=''):
	pythoncom.CoInitialize()
	source = Dispatch("Microsoft.XMLDOM")
	source.async = 1==0
	source.loadXML(xml)
	style = Dispatch("Microsoft.XMLDOM")
	style.async = 1==0
	style.loadXML(xsl)
	if source.parseError.errorCode != 0:
		result = self.reportParseError(source.parseError)
	if style.parseError.errorCode != 0:
		result = self.reportParseError(style.parseError)
	try:
		result = source.transformNode(style)
	except Exception,e:
		result = self.reportRuntimeError(e)
	return result
.
.
.
----/end/----



-- 
--
Chad Nantais
Rednaxel Interactive
cnantais@rednaxel.com