[Zope] Adding an XMLDocument instance Programmatically

Jonothan Farr jfarr@real.com
Mon, 24 Jul 2000 18:59:21 -0700


> 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 Products.XMLDocument.XMLDocument import Document

That is: import the Document class from the XMLDocument module (file) in the XML
package (directory) in the Products package.

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998