in reply to Re^3: LibXML version
in thread LibXML version

Hi Marto..

I agree with your point that it may be a inefficient code. Let me give you a snippet here. Please let me know if I'm going wrong somewhere.

my $xsd_file = XML::LibXML::Schema->new(location => $xsd); my $parser = XML::LibXML->new; my $XML_file = $parser->parse_file($xml); eval { $schema->validate(XML_file) };

Any suggestion will be highly appreciated.

Thanks & Regards,

Sathya V.

Replies are listed 'Best First'.
Re^5: LibXML version
by marto (Cardinal) on Nov 28, 2013 at 12:54 UTC

    "Let me give you a snippet here."

    Does this snippet reproduce the problem? It could be that your memory problems are caused by code you've not shown us. How do I post a question effectively? explains that you should post a minimal example of code and data which reproduces the problem you experience. Also read Tutorials -> Debugging and Optimization -> Basic debugging checklist. Consider profiling your code with something like Devel::NYTProf.

    Update: It seems you're jumping to conclusions as to the cause of this memory issue. I suggest profiling and debugging to isolate the problem.