Performance Improvements in loading xsd resource [message #575918] |
Sun, 17 August 2003 13:57 |
Hayden Marchant Messages: 90 Registered: July 2009 |
Member |
|
|
I would like to know if there's anyway I can improve the performance of
reading of an xsd schema. I run my code in a profiler a lot of the time is
spent in this part of the code. If I know that the xsd is valid, and I'm
not concerned about errors, is there something I can turn off while
reading?
I am currently using the following code:
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "*",
new XSDResourceFactoryImpl());
resourceSet.getLoadOptions().put(XSDResourceImpl.XSD_TRACK_L OCATION,
Boolean.TRUE);
final XSDResourceImpl xsdMainResource = (XSDResourceImpl)
resourceSet.getResource(uri, true);
XSDSchema xsdSchema = xsdMainResource.getSchema();
Thanks,
Hayden Marchant
|
|
|
Powered by
FUDForum. Page generated in 0.03889 seconds