in reply to Maximum parsing depth with XML::Parser?

I agree with what tilly says aboutXML::Parser not parsing invalid XML, but you might be able to work around it.

It depends which XML::Parser style you're using. If you're using the 'Subs' style or defiing your own handlers, then it might be possible to set a global flag within the subroutine that recognises a text element. You could then check for this flag in other subs and do nothing if it's one. You'd reset the flag when you see the end of the text tag.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000, ICA, London
<http://www.yapc.org/Europe/>
  • Comment on Re: Maximum parsing depth with XML::Parser?