[Zope] xml.dom.minidom

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Wed, 16 Jul 2003 15:46:17 +0200


expat.py is just wrapper for the expat. You need to have installed a recent 
expat 1.96.X
parser. Maybe check your distribution if it is installed or not. Otherwise 
visit expat.sf.net
to get the latest version.

-aj

--On Mittwoch, 16. Juli 2003 15:40 Uhr +0200 "Patrick W. Fraley" 
<pf@comsulting.de> wrote:

> Hi Andreas,
>
> I am not sure.  I did use the binary install of Zope.  When I look in
> /opt/Zope-2.6.1/lib/python2.1/xml/parsers there a file named expat.py.
>
> Is there anything else needed for that? (Sorry about the
> "newbee-questions" I am new to Zope/Python/XML).
>
> Tia
> Patrick
>
> Am Mit, 2003-07-16 um 15.34 schrieb Andreas Jung:
>> have expat installed?
>>
>> -aj
>>
>> --On Mittwoch, 16. Juli 2003 15:29 Uhr +0200 "Patrick W. Fraley"
>> <pf@comsulting.de> wrote:
>>
>> > Hi List,
>> >
>> > I am trying to use the xml.dom.minidom praseString routine.  It works
>> > fine under normal python (2.2), but when I try and runn it under the
>> > binary distribution of Zope (Python 2.1) I get teh following error
>> > message:
>> >
>> > Traceback (most recent call last):
>> >   File "mM4Connection.py", line 118, in ?
>> >     dom_parser = parseString(xmldata)
>> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/dom/minidom.py", line 915, in
>> > parseString
>> >     return _doparse(pulldom.parseString, args, kwargs)
>> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/dom/minidom.py", line 901, in
>> > _doparse
>> >     events = apply(func, args, kwargs)
>> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/dom/pulldom.py", line 301, in
>> > parseString
>> >     parser = xml.sax.make_parser()
>> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/sax/__init__.py", line 88, in
>> > make_parser
>> >     raise SAXReaderNotAvailable("No parsers found", None)
>> > xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
>> >
>> >
>> > Now I though all these modules (including a parser) are part of a
>> > standard python distribution.
>> >
>> > How can I get this to work?  Or is there a better way to use XML under
>> > Zope?  Do I have to install some extra Packages?
>> >
>> > Tia
>> > Patrick
>> > --
>> >
>> > ***************************************
>> > COMsulting Gerhard Faehling GmbH
>> > Patrick W. Fraley
>> > Oeverdieker Weg 6
>> > 23669 Timmendorfer Strand
>> > Tel: 04503 / 88 12 45
>> > Fax: 04503 / 88 10 18
>> > E-Mail: pf@comsulting.de
>> > Internet: www.comsulting.de
>> > ***************************************
>> >
>> >
>> > _______________________________________________
>> > Zope maillist  -  Zope@zope.org
>> > http://mail.zope.org/mailman/listinfo/zope
>> > **   No cross posts or HTML encoding!  **
>> > (Related lists -
>> >  http://mail.zope.org/mailman/listinfo/zope-announce
>> >  http://mail.zope.org/mailman/listinfo/zope-dev )
>>
>>
>>
>>
>>
>> _______________________________________________
>> Zope maillist  -  Zope@zope.org
>> http://mail.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://mail.zope.org/mailman/listinfo/zope-announce
>>  http://mail.zope.org/mailman/listinfo/zope-dev )
> --
>
> ***************************************
> COMsulting Gerhard Faehling GmbH
> Patrick W. Fraley
> Oeverdieker Weg 6
> 23669 Timmendorfer Strand
> Tel: 04503 / 88 12 45
> Fax: 04503 / 88 10 18
> E-Mail: pf@comsulting.de
> Internet: www.comsulting.de
> ***************************************
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )