tags:

views:

29

answers:

1

I am using DOMDocument for xml file validation. It takes more than 30 minutes in validating a 67MB xml file. Is there any other way to improve this checking time?

+1  A: 

Have you tried XMLReader? I recall this one as being pretty decent, though I don't think I tested it on anything as large as 67 MB.

FrustratedWithFormsDesigner
I tried but its not working. All its saying valid atleast DOMDocument detects errors.$xml = new XMLReader(); $xml->open("../output.xml");if($xml->setSchema('../schema.xsd')) { if($xml->isValid()) { echo 'Valid'; } else { echo 'Not valid'; }}else { echo 'Failed to load xml schema';}
jason