Hi,
the parser will work in OOo2.0 (as python-version is raised to 2.3.4 which comes with expat by default). Unfortunately, python is broken in the latest 2.0 milestones, but this will be fixed soon (and can be repaired easily if you want to give it a try).
When don't have already lots of code that relies on mindom, you can alternatively use OOo xml parser ( see http://udk.openoffice.org/python/oood/oood.py , search for readConfiguration ).
You might even try to plug OOo parser into python parser api, but I don't know this api (so I don't know, whether this is even possible), this would then allow to use minidom ...
Bye,
Joerg
Laurent Godard wrote:
Hi all,
trying to use the python shipped with OOo, i can not make minidom work correctly
Is it known ?
any workaround ?
thanks in advance
Laurent
'----------------------
/usr/local/openoffice-1.1.4/program$ ./python
Python 2.2.2 (#1, Jul 21 2003, 15:13:13)
[GCC 3.2.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from xml.dom import minidom
>>> parsedXml = minidom.parseString('<xxx>dummy</xxx>')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/openoffice-1.1.4/program/python-core/lib/xml/dom/minidom.py", line 967, in parseString
return _doparse(pulldom.parseString, args, kwargs)
File "/usr/local/openoffice-1.1.4/program/python-core/lib/xml/dom/minidom.py", line 953, in _doparse
events = apply(func, args, kwargs)
File "/usr/local/openoffice-1.1.4/program/python-core/lib/xml/dom/pulldom.py", line 340, in parseString
parser = xml.sax.make_parser()
File "/usr/local/openoffice-1.1.4/program/python-core/lib/xml/sax/__init__.py", line 93, in make_parser
raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
>>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
