Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Performance Improvements in loading xsd resource
Performance Improvements in loading xsd resource [message #575918] Sun, 17 August 2003 13:57
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 90
Registered: July 2009
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

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,
final XSDResourceImpl xsdMainResource = (XSDResourceImpl)
resourceSet.getResource(uri, true);
XSDSchema xsdSchema = xsdMainResource.getSchema();

Hayden Marchant
Previous Topic:Removing components from an XML schema
Next Topic:Performance Improvements in loading xsd resource
Goto Forum:

Current Time: Sat Aug 08 00:54:06 GMT 2020

Powered by FUDForum. Page generated in 0.01851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top