in reply to Re^2: XML::Twig - Parsing XML file with incorrect encoding in declaration
in thread [SOLVED] XML::Twig - Parsing XML file with incorrect encoding in declaration
I haven't tried this, but you should be able to setup a FIFO , and pass a handle to LibXML to read.
Then read your XML file, a record at a time, filter out the encoding garbage, and feed it to the FIFO.
Probably need 2 threads to make this work in a single program.
All power corrupts, but we need electricity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XML::Twig - Parsing XML file with incorrect encoding in declaration
by ateague (Monk) on Sep 18, 2017 at 13:42 UTC |