I am trying to write a python method which will programmatically create an
instance of an (existing) XML document. (I am using Zope2.1.6 and
XMLDocument 1.0a6) I am able to add an XML document by selecting the
XMLDocument from the available objects ... so XMLDocument is installed
correctly.
I can' t seem to get beyond importing Document (cannot import name
Document). Do I need to import other modules? Is this the best/only way to
do this?? Appreciate any help.
from Products.XMLDocument import Document
I think you missed an 'XMLDocument'.
from