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
2010-08-09 20:37:56
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
2010-08-09 20:49:37