
Hello. I am trying to use iterparse() in lieu of parse(). According to the documentation, parse() can employ a parser, whereas iterparse() leaves no option for this. I have xml files using utf-8 characters and latin1 encoded characters. How can I accomplish parsing using both uft-8 and latin1 encodings using iterparse()? Any help on this would be greatly appreciated. Thank you. -Ryan -- -- This message is intended only for the use of the individual(s) or entity to which it is addressed and may contain information that is privileged, confidential, and/or proprietary to Apkudo. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, forwarding or copying of this communication is prohibited without the express permission of the sender. If you have received this communication in error, please notify the sender immediately and delete the original message.

Ryan Gentner schrieb am 04.09.20 um 18:22:
iterparse() itself takes all sorts of options: https://lxml.de/api/lxml.etree.iterparse-class.html#__init__ Stefan

Ryan Gentner schrieb am 04.09.20 um 18:22:
iterparse() itself takes all sorts of options: https://lxml.de/api/lxml.etree.iterparse-class.html#__init__ Stefan
participants (2)
-
Ryan Gentner
-
Stefan Behnel