Mod_python xml parsing problem

Discussion in 'Python' started by Mike Medland, Jul 1, 2003.

  1. Mike Medland

    Mike Medland Guest

    Hi, I am currently using Python 2.2.3, apache 1.3.27 and mod_python
    2.7.8. Under Solaris 8 on a sun.
    The configuration appears to be working fine but, the problem that i am
    having is in parsing xml files, when i do for example:

    xmlfile = minidom.parse(file)
    root = xmlfile.childNodes

    It creates a dom instance but it contains nothing at all, and
    root returns
    a 'nonetype'. I believe that it may be an encoding problem but i dont
    know
    how to fix it.
    When i tried the same code using cgi instead of mod_python it worked
    fine. Any suggestions would be greatly appreciated.

    --
    Posted via http://dbforums.com
     
    Mike Medland, Jul 1, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?UTF-8?B?0LTQsNC80ZjQsNC9INCzLg==?=

    xml-rpc for mod_python

    =?UTF-8?B?0LTQsNC80ZjQsNC9INCzLg==?=, Jan 12, 2004, in forum: Python
    Replies:
    0
    Views:
    347
    =?UTF-8?B?0LTQsNC80ZjQsNC9INCzLg==?=
    Jan 12, 2004
  2. Jeffrey Froman

    mod_python and xml.sax

    Jeffrey Froman, Dec 20, 2004, in forum: Python
    Replies:
    2
    Views:
    368
    Jeffrey Froman
    Dec 22, 2004
  3. blbmdsmith
    Replies:
    1
    Views:
    682
    Graham Dumpleton
    Dec 14, 2006
  4. John Levine
    Replies:
    0
    Views:
    767
    John Levine
    Feb 2, 2012
  5. Erik Wasser
    Replies:
    5
    Views:
    530
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page