in reply to what does XML::SAX parse method return ?

The parse method returns whatever value your end_document handler returns. See the Perl Sax documentation for more on this

/J\