WG: lxml can't load external DTD from HTTPS internetaddress

Dear Sirs, I have a problem with a DTD that is stored on a server and can be retrieved from the following path. <https://smile.htw-berlin.de/TMP_dtd/XML_DTDValidation.dtd> https://smile.htw-berlin.de/TMP_dtd/XML_DTDValidation.dtd <-- Internetside 1 Unfortunately the website runs under the HTTPS protocol. Since this is provided by the university, I can't change it. I have already been informed that I can't get an area that only runs with the HTTP protocol. Error: warning: failed to load external entity "https://smile.htw-berlin.de/TMP_dtd/XML_DTDValidation.dtd At the following Internet address: <http://mum.mxndmrtz.de/wp-content/uploads/2020/02/XML_DTDValidation.txt> http://mum.mxndmrtz.de/wp-content/uploads/2020/02/XML_DTDValidation.txt <-- Internetside 2 the same DTD but with a different file suffix, otherwise I could not upload this file on the server. Works fine. When I try to check an example XML with LXML using the DTD, it only works with the DTD that is on the web page 2. As an example the two references to the respective DTD are shown. <!DOCTYPE book PUBLIC "-//JR//HTW Berlin book//EN" " <https://smile.htw-berlin.de/TMP_dtd/XML_DTDValidation.dtd> https://smile.htw-berlin.de/TMP_dtd/XML_DTDValidation.dtd"> <!DOCTYPE book PUBLIC "-//JR//HTW Berlin book//EN" " <http://mum.mxndmrtz.de/wp-content/uploads/2020/02/XML_DTDValidation.txt> http://mum.mxndmrtz.de/wp-content/uploads/2020/02/XML_DTDValidation.txt"> I send you an example XML, which points to DTD on Internet page 1 and cannot be retrieved by LXML. (I have changed ".xml" to ".txt" in the file) In a forum I also read that a DTD on a HTTPS page cannot be used. Is this true? Now to my question. Can I somehow access the DTD on web page 1 with the scope of LXML? Mit freundlichen Grüßen Jörg Rademann --------------------------------------------------------------------- Dipl.-Ing. Jörg Rademann Wissenschaftlicher Mitarbeiter Fachbereich 2 Fahrzeugtechnik Hochschule für Technik und Wirtschaft (HTW) Berlin Raum C596 Wilhelminenhofstraße 75a 12459 Berlin Tel. +49 30 5019-3854 | Fax +49 30 5019-48-3854 <mailto:Joerg.Rademann@HTW-Berlin.de> Joerg.Rademann@HTW-Berlin.de | <http://www.htw-berlin.de/> www.htw-berlin.de
participants (1)
-
Jörg Rademann