From christophe.hermier at quickfds.com Tue Sep 20 13:35:11 2022 From: christophe.hermier at quickfds.com (Hermier, Christophe) Date: Tue, 20 Sep 2022 15:35:11 +0200 Subject: [Xml-compile] "huge" texte node Message-ID: <09dad92a-6958-b15e-93d1-8b7ea4fafad7@quickfds.com> Hello all, I am using XML::Compile::Schema to read XML files that sometimes contains a base64 encoded version of a PDF file. This can get quite big and I get the message : xmlSAX2Characters: huge text node I've found ( here: https://stackoverflow.com/questions/16812826/practicable-way-of-reading-xml-with-huge-text-nodes-in-perl ) that I can avoid this message by setting the "huge" option to the libXML call to load_xml ou Reader->new. Unfortunately I can't find how to tell XML::Compile::Schema to use this option. What can I do ? Regards, Christophe -- HERMIER Christophe. =============================== QUICK-FDS ASSURE LA CONTINUITE DE SON ACTIVITE DURANT LA PANDEMIE COVID-19. POUR EN SAVOIR PLUS : https://www.quickfds.com/pca/covid19-pca-quickfds.pdf ----------------------------------------------------------------------------------------------- Gestion des FDS fournisseurs ? Distribution r?glementaire probatoire ? Consulting & Formation FDS/CLP/ICPE/DECHETS ----------------------------------------------------------------------------------------------- Quick-FDS 39 boulevard Ornano 93200 Saint-Denis Tel: +33 (0)1 53 35 07 08 Fax: +33 (0)1 53 35 07 09 Web : http://www.quickfds.com Ligne directe : (0)1 53 35 07 10 Merci de penser ? l'environnement avant d'imprimer cet e-mail Please think of the environment before printing this email -------- From mark at overmeer.net Tue Sep 20 14:07:37 2022 From: mark at overmeer.net (Mark Overmeer) Date: Tue, 20 Sep 2022 16:07:37 +0200 Subject: [Xml-compile] "huge" texte node In-Reply-To: <09dad92a-6958-b15e-93d1-8b7ea4fafad7@quickfds.com> References: <09dad92a-6958-b15e-93d1-8b7ea4fafad7@quickfds.com> Message-ID: <20220920140737.GV10270@moon.overmeer.net> Hi Christophe, * Hermier, Christophe (christophe.hermier at quickfds.com) [220920 13:39]: > xmlSAX2Characters: huge text node > Unfortunately I can't find how to tell XML::Compile::Schema to use this > option. What can I do ? Please, can you try XML::Compile::Schema->new(parser_options => { huge => 1} ); -- Have a nice day, MarkOv ---------------------------------------------------------------------- Mark Overmeer MSc MARKOV Solutions Mark at Overmeer.net solutions at overmeer.net http://Mark.Overmeer.net https://markov.solutions