in reply to Re^2: XML Parsing Suggestions?
in thread XML Parsing Suggestions?

Comments aren't useful data. If they were, they wouldn't be comments. :-)

But, yes, you can parse comments in Stream mode. (If you couldn't, you couldn't get at them in any other mode as all XML::Parser modes are implemented as Stream mode.) The Comment handler (which is readily visible when you read the documentation is probably what you're looking for.


  • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
  • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"