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éservés © 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)
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"> "Content- Type" content= "text/html; charset= UTF-8"/ > title" content="Approches inductives : Travail intellectuel et construction des connaissances"/> /doi.org/ 10.7202/ 1025748ar"/>
<title>Approches inductives: « Chantez au Seigneur un chant nouveau... » (Ps.95.1) : le portrait de la musique rock chrétienne</title>
<meta http-equiv=
<meta name="journal-
<meta name="issue-label" content="Approches inductives en communication sociale, 1(1) automne 2014"/>
<meta name="license" content="Tous droits réservés © Approches inductives, 2014">Tous droits réservés © Approches inductives, 2014</meta>
<meta name="doi" content="https:/
</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)