Menu

#7 XML entities

closed-works-for-me
parser (5)
5
2001-08-25
2001-08-20
Paul Wright
No

The special characters ampersand, quotes and angle
brackets aren't turned into the relevant XML entities
in the XML output. This means that XML parsers (like
the one in IE) barf on the output.

I'm using ActiveState's ActivePython 2.0 under Win32,
if that makes a difference.

Discussion

  • David Goodger

    David Goodger - 2001-08-25
    • status: open --> closed-works-for-me
     
  • David Goodger

    David Goodger - 2001-08-25

    Logged In: YES
    user_id=7733

    How are you getting XML output? The default str() and
    .pprint() representations are XML-ish, but not XML. To
    get true XML, you have to convert with
    ``document.asdom().toxml()``. ``xml.dom.minidom``
    does the conversion into character entities for us.

    Use ``tools/quicktest.py --xml`` for quick access to true
    XML. (Get the latest version -- to be updated tonight --
    for the best output.)

    I've closed the bug report. Please let me know if the
    above does *not* fix the bug.

    Thanks for the input!

     

Log in to post a comment.