Validation against 10K XSD - performance problem
Posted
by stck777
on Stack Overflow
See other posts from Stack Overflow
or by stck777
Published on 2010-03-18T09:11:43Z
Indexed on
2010/03/18
9:21 UTC
Read the original article
Hit count: 190
I have an XSD scheme which has 10K lines. It takes 5 seconds to validate my XML with 500 lines. I get dynamically XML via POST from external server, on every click of the user on my homepage. The validation takes 5+ seconds, which is very much for every click of the user. PHP Example:
$doc = new DOMDocument();
$doc->load('file.xml'); //100 to 500 lines
$doc->schemaValidate('schema.xsd'); //schema.xsd 10 000 lines
Do you have any idea how I can validate the XML against the XSD faster?
© Stack Overflow or respective owner