in reply to XML::Twig::flush() and html/xml entities

Take a look at the output_filter argument to the constructor, see XML::Twig, the value 'html' looks promising.

Update: Apparently it only looked promising ... that's what I get for a quick look at the docs without actually trying it out, thanks for the correction, mirod!

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re: XML::Twig::flush() and html/xml entities

Replies are listed 'Best First'.
Re^2: XML::Twig::flush() and html/xml entities
by mirod (Canon) on Oct 05, 2006 at 12:42 UTC

    Actually, if you get the content of the element using text, the output_filter will not be applied. So no, that won't work (see below what will work).