Java Heap Space error while using Pub.Schema.Validate

Hi all,

I am validating an xml file against the schema but I am getting Java Heap Space error.

I have created the schema using the stylus studio. Does anyone has any idea why this problem is occuring?

Thanks in advance.

how big is the xml file …?

there are many reasons for getting out of memory error. A simple search will result you many useful post.

how are you trying to validate your XML document ? If you are having large XML, then trying following large document handling technique to avoid out of memory error.


Its a very small xml file. It hardly has 15 fields. I tried to search forum but i couldn’t find one.

Please direct me, if you find any or know the answer for the problem.