XSD validation slows down a lot my parser
I've just coded a XML parser with libxml2 and added XSD validation to it.
Since I've found 3 different functions to use XSD validation, I've tried them all to see if one of them was interesting about execution speed but apparently it's not the case.
I tried :
- xmlTextReaderSchemaValidate
- xmlTextReaderSchemaValidateCtxt
- xmlTextReaderSetSchema
and each of these functions adds roughly 1.3s of execution time to parse a 2.6Mo XML file.
It's too long for me so I can't keep using libxml2 because of that.
Is it possible to bypass this problem ?
Thx
Edited by Dimitri Baron