That solved the problem, thanks
There were another file named xml, that was imported instead of the one intended. I should have thought of that my self from the beginning…
Once again, thanks for the help!
/P-O
On 6/21/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
P-O Bengtsson wrote at 2006-6-21
P-O Bengtsson wrote at 2006-6-21 00:58 +0200:
>i have tried both and got the same error message. I have also tried to
>import the dom package in the same two ways without any luck...
>
>On 6/20/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
>> P-O Bengtsson wrote at 2006-6-20 10:34 +0200:
>> > ...
>>
i have tried both and got the same error message. I have also tried to import the dom package in the same two ways without any luck...
On 6/20/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
P-O Bengtsson wrote at 2006-6-20 10:34 +0200:> ...>"import xml" works fine, but when I try to import dom or sax
P-O Bengtsson wrote at 2006-6-20 10:34 +0200:
> ...
>"import xml" works fine, but when I try to import dom or sax package I get
>the error message
>
>" ImportError: No module named sax"
You try "import xml.sax" or "from xml import sax"?
--
Dieter
___