Comment 0 for bug 1853640

Revision history for this message
Fabio (fabiobatalha) wrote :

The following XML is an XML file printed from a ElementTree.

et.write(xml_object, pretty_print=True, enconfig='UTF-8')

The content in head/meta[@content] is the same of head/meta but while writing to a file, only the content i the element is decoded.

<head xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML">
  <title>Approches inductives: « Chantez au Seigneur un chant nouveau... » (Ps.95.1) : le portrait de la musique rock chrétienne</title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
  <meta name="journal-title" content="Approches inductives : Travail intellectuel et construction des connaissances"/>
  <meta name="issue-label" content="Approches inductives en communication sociale, 1(1) automne 2014"/>
  <meta name="license" content="Tous droits r&#xE9;serv&#xE9;s &#xA9; Approches inductives, 2014">Tous droits réservés © Approches inductives, 2014</meta>
  <meta name="doi" content="https://doi.org/10.7202/1025748ar"/>
</head>

ENVIRONMENT:

Python : sys.version_info(major=3, minor=6, micro=7, releaselevel='final', serial=0)
lxml.etree : (4, 3, 3, 0)
libxml used : (2, 9, 9)
libxml compiled : (2, 9, 9)
libxslt used : (1, 1, 33)
libxslt compiled : (1, 1, 33)