in reply to Re: XML::Expat - error from browser
in thread XML::Expat - error from browser

I'm not sure that this is an "if all else fails" condition. From what I can see in the calling code (XML::Twig::parse -> XML::Parser::parse -> XML::Expat::parse) the other conditions are there to handle more specialized cases. The first condition handles the case where a filehandle has been passed in as the argument, the second handles a Tied Handle, and the third is there to handle a simple scalar which contains the string to be parsed. Apologies to Larry and Clark if I have misunderstood their code...
If you read what I wrote closely you will see that this code works fine from the command line. It is in the browser that this error occurs.
  • Comment on Re: Re: XML::Expat - error from browser

Replies are listed 'Best First'.
Re: Re: Re: XML::Expat - error from browser
by Anonymous Monk on May 29, 2001 at 21:39 UTC
    I'm not sure it's commandline vs CGI. I think it's testcase (with 1 node) vs the real thing (with many nodes) in the string.
Re: Re: Re: XML::Expat - error from browser
by Anonymous Monk on May 29, 2001 at 21:42 UTC
    The 3rd case handles an open HALLO handle.