in reply to How to set options for XML::LibXML:SAX

Looking at the source, it doesn't look like you can configure it at all. It recreates the XML::LibXML object in various places, without any way of supplying your own parameters:

sub _parse_bytestream { my ( $self, $fh ) = @_; $self->{ParserOptions}{LibParser} = XML::LibXML->new; $self->{ParserOptions}{ParseFunc} = \&XML::LibXML::parse_fh; $self->{ParserOptions}{ParseFuncParam} = $fh; $self->_parse; return $self->end_document({}); }

You'll have to patch the module and find out how to make XML::SAX::Base pass parameters down to the implementation, and then pass these parameters on to XML::LibXML.

Replies are listed 'Best First'.
Re^2: How to set options for XML::LibXML:SAX
by Nocturnus (Scribe) on Apr 22, 2012 at 08:07 UTC

    Thank you very much for the precise answer. It seems that my fears have come true.

    Regards,

    Nocturnus