miriamca
September 30th, 2005, 07:40 AM
Hi all,
I have been trying xerces 2.6.0 (xerces C++) validating some XML files against XML Schemas. I have realized that xerces performance decreases a lot when you reference bigger XML Schemas.
For simplicity, I have done some test with SAXPrint sample distributed with xerces and try with different XML files and different XML Schemas. Some XML Schemas are about 100-300 lines and there is not a problem when parsing the XML file and validating it. But I have an XML Schema that is about 1100 lines (a little bit bigger) and it takes an hour to execute SAXPrint example. The XML files that I have are all small.
These are the features I have set to execute SAXPrint.exe:
SAXPrint.exe -v=always -n -s "myFile.xml"
-v=xxx Validation scheme [always | never | auto*].
-n Enable namespace processing.
-s Enable schema processing.
Has anybody know why I get such a poor performance when I use bigger XML Schemas?. Any idea to improve it?.
Thanks in advance.
I have been trying xerces 2.6.0 (xerces C++) validating some XML files against XML Schemas. I have realized that xerces performance decreases a lot when you reference bigger XML Schemas.
For simplicity, I have done some test with SAXPrint sample distributed with xerces and try with different XML files and different XML Schemas. Some XML Schemas are about 100-300 lines and there is not a problem when parsing the XML file and validating it. But I have an XML Schema that is about 1100 lines (a little bit bigger) and it takes an hour to execute SAXPrint example. The XML files that I have are all small.
These are the features I have set to execute SAXPrint.exe:
SAXPrint.exe -v=always -n -s "myFile.xml"
-v=xxx Validation scheme [always | never | auto*].
-n Enable namespace processing.
-s Enable schema processing.
Has anybody know why I get such a poor performance when I use bigger XML Schemas?. Any idea to improve it?.
Thanks in advance.