Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » First schema loading time
First schema loading time [message #3442] Tue, 22 October 2002 05:42 Go to next message
Eclipse UserFriend
Originally posted by: wgkang.tagfree.com

Hi.

First schema loding need too long time.

============================
XSDResourceFactoryImpl factory = new XSDResourceFactoryImpl();
Resource resource =
factory.createResource(URI.createFileURI("c://a.xsd"));
XSDResourceImpl xsdresource = (XSDResourceImpl) resource;
Map namespaceMap = new HashMap();
namespaceMap.put("aaa", "http://aaa/aaa");
xsdresource.load(namespaceMap);
============================
The cause of this problem was "xsdresource.load(namespaceMap);" --> last
line

How do I loading a class beforehand? and What class?

Thanks.
-wgkang-
Re: First schema loading time [message #3478 is a reply to message #3442] Tue, 22 October 2002 11:42 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Hi,

I'm having trouble figuring out what you are asking. Perhaps starting with
the working example that's in org.eclipse.xsd.test would be a good thing.
XSDMainTest.java contains all the details relevant for setting up a
headless or standalone environment and for loading schemas from files/URLs.

wgkang wrote:

> Hi.
>
> First schema loding need too long time.
>
> ============================
> XSDResourceFactoryImpl factory = new XSDResourceFactoryImpl();
> Resource resource =
> factory.createResource(URI.createFileURI("c://a.xsd"));
> XSDResourceImpl xsdresource = (XSDResourceImpl) resource;
> Map namespaceMap = new HashMap();
> namespaceMap.put("aaa", "http://aaa/aaa");
> xsdresource.load(namespaceMap);
> ============================
> The cause of this problem was "xsdresource.load(namespaceMap);" --> last
> line
>
> How do I loading a class beforehand? and What class?
>
> Thanks.
> -wgkang-

--
Ed Merks
Re: First schema loading time [message #563110 is a reply to message #3442] Tue, 22 October 2002 11:42 Go to previous message
Eclipse UserFriend
Hi,

I'm having trouble figuring out what you are asking. Perhaps starting with
the working example that's in org.eclipse.xsd.test would be a good thing.
XSDMainTest.java contains all the details relevant for setting up a
headless or standalone environment and for loading schemas from files/URLs.

wgkang wrote:

> Hi.
>
> First schema loding need too long time.
>
> ============================
> XSDResourceFactoryImpl factory = new XSDResourceFactoryImpl();
> Resource resource =
> factory.createResource(URI.createFileURI("c://a.xsd"));
> XSDResourceImpl xsdresource = (XSDResourceImpl) resource;
> Map namespaceMap = new HashMap();
> namespaceMap.put("aaa", "http://aaa/aaa");
> xsdresource.load(namespaceMap);
> ============================
> The cause of this problem was "xsdresource.load(namespaceMap);" --> last
> line
>
> How do I loading a class beforehand? and What class?
>
> Thanks.
> -wgkang-

--
Ed Merks
Previous Topic:First schema loading time
Next Topic:CVS / Bug-Fixing-Process
Goto Forum:
  


Current Time: Thu Jun 05 18:47:43 EDT 2025

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

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

Back to the top