Help for this page

Select Code to Download


  1. or download this
    my $xml = getXML($url); # retrieve it thru http
    my $parser = new XML::DOM::Parser;
    my $doc = $parser->parse($xml);
    
    # This first snippet would take as much as 2Gigs of memory.
    
  2. or download this
    my $xml = getXML($url); # retrieve it thru http
    my $file  = writeToFile($xml) or return; 
    ...
    my $doc = $parser->parsefile($file);
    
    # This isn't even noticeable