Hi all,
Our application uses several schemas to validate XML-files and I recently
adjusted the validation to use a Wrapper4InputSource and loadGrammar; inspired
by this blogpost:
https://www.codesynthesis.com/~boris/blog/2010/03/15/validating-external-schemas-xerces-cxx/
Unfortunately I lost the schemas' default-values in the process and I can't
figure out how to get those back.
I get a SIGSEGV during parse if I enable the following option:
conf->setParameter(XMLUni::fgXercesDOMHasPSVIInfo, true);
Here's the stacktrace:
Thread #1 0 (Suspended : Signal : SIGSEGV:Segmentation fault)
xercesc_3_2::IGXMLScanner::buildAttList() at 0x61f81b
xercesc_3_2::IGXMLScanner::scanStartTagNS() at 0x618e64
xercesc_3_2::IGXMLScanner::scanContent() at 0x61ae7b
xercesc_3_2::IGXMLScanner::scanDocument() at 0x61b0b7
xercesc_3_2::XMLScanner::scanDocument() at 0x5067be
xercesc_3_2::AbstractDOMParser::parse() at 0x528b93
xercesc_3_2::DOMLSParserImpl::parseURI() at 0x52c47b
Am I supposed to supply the PSVIhandler myself somehow? Any pointers on how to
do that? The PSVIWriter-sample perhaps?
Perhaps I'm running into this bug:
https://issues.apache.org/jira/browse/XERCESC-1667
Or its clone:
https://issues.apache.org/jira/browse/XERCESC-1671
I also checked the linked post; and tried the suggestion to enable/disable pool
locking, but it didn't help:
https://marc.info/?l=xerces-c-users&m=124580697906104&w=2
Please advise.
Kind regards,
Erik Tempelaar
Disclaimer: This mail transmission and any attached files are confidential and
are intended for the addressee only. If you are not the person or organization
to whom it is addressed, you must not copy, disclose, distribute or take any
action in reliance upon it. If you have received this message in error, please
contact the sender by email and delete all copies of this message and all
copies of any attached files.