[lxml-dev] blather question about XML declaration

Hervé Cauwelier herve.cauwelier at free.fr
Thu Jul 9 20:35:10 CEST 2009


Hi,

I just wonder why lxml is producing XML declarations such as

  <?xml version='1.0' encoding='UTF-8'?>

or sometimes

  <?xml version=&apos;1.0&apos; encoding=&apos;UTF-8&apos;?>

instead of the most common (to my knowledge)

    <?xml version="1.0" encoding="UTF-8"?>

For now I don't ask tostring() to print it, I concatenate my own with
the tree serialisation.

Thanks,

Hervé


More information about the lxml-dev mailing list