Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD Schema schema discovery problem
XSD Schema schema discovery problem [message #1043] Thu, 26 September 2002 21:57 Go to next message
Eclipse UserFriend
Originally posted by: dsingh.altoweb.com

hi all.

The XSDSchemaImpl needs to load the base xml schema definitions prior to
attempting to
parse any user xml schemas. I guess that there needs to be a initialization
phase that invokes
the "XSDSchema.createMetaSchema" method with all the possible base schemas.

I could simple parse each xml schema schema from xsd.resources.jar into a
dom node and invoke it
myself. Is this the right thing to do?

If I have missed something blatantly obvious, please excuse me.

I appreciate any help to resolve this issue.

Thanks

Dharminder Singh
Re: XSD Schema schema discovery problem [message #1100 is a reply to message #1043] Fri, 27 September 2002 11:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Dharminder,

The schema for schema is available via XSDUtil.getSchemaForSchema. All this
meta information is created automatically (on demand) so you should not need to
do anything. Are you experiencing a problem?

Dharminder Singh wrote:

> hi all.
>
> The XSDSchemaImpl needs to load the base xml schema definitions prior to
> attempting to
> parse any user xml schemas. I guess that there needs to be a initialization
> phase that invokes
> the "XSDSchema.createMetaSchema" method with all the possible base schemas.
>
> I could simple parse each xml schema schema from xsd.resources.jar into a
> dom node and invoke it
> myself. Is this the right thing to do?
>
> If I have missed something blatantly obvious, please excuse me.
>
> I appreciate any help to resolve this issue.
>
> Thanks
>
> Dharminder Singh

--
Ed Merks
Re: XSD Schema schema discovery problem [message #1182 is a reply to message #1100] Fri, 27 September 2002 20:12 Go to previous message
Eclipse UserFriend
Originally posted by: dsingh.altoweb.com

Sorry Ed I think I figured out how to solve the problem.
I had crimson in the classpath and using crimson I was getting the following
exception when the
loading of the schema was happening.

Thanks

Dharminder Singh

org.xml.sax.SAXParseException: Relative URI "XMLSchema.dtd"; can not be
resolved without a document URI.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
at org.apache.crimson.parser.Parser2.parseSystemId(Parser2.java :2627)
at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.ja va:2605)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.j ava:1116)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl. java:433)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBu ilderImpl.java:1
79)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java :122)
at
org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResource Impl.java:136)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:280)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:812)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:690)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
pl.java:209)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
mpl.java:275)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.jav
a:550)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:628
)
at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:440)
at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:266)

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:3D944019.6059C5DC@ca.ibm.com...
> Dharminder,
>
> The schema for schema is available via XSDUtil.getSchemaForSchema. All
this
> meta information is created automatically (on demand) so you should not
need to
> do anything. Are you experiencing a problem?
>
> Dharminder Singh wrote:
>
> > hi all.
> >
> > The XSDSchemaImpl needs to load the base xml schema definitions prior to
> > attempting to
> > parse any user xml schemas. I guess that there needs to be a
initialization
> > phase that invokes
> > the "XSDSchema.createMetaSchema" method with all the possible base
schemas.
> >
> > I could simple parse each xml schema schema from xsd.resources.jar into
a
> > dom node and invoke it
> > myself. Is this the right thing to do?
> >
> > If I have missed something blatantly obvious, please excuse me.
> >
> > I appreciate any help to resolve this issue.
> >
> > Thanks
> >
> > Dharminder Singh
>
> --
> Ed Merks
>
>
Re: XSD Schema schema discovery problem [message #562562 is a reply to message #1043] Fri, 27 September 2002 11:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Dharminder,

The schema for schema is available via XSDUtil.getSchemaForSchema. All this
meta information is created automatically (on demand) so you should not need to
do anything. Are you experiencing a problem?

Dharminder Singh wrote:

> hi all.
>
> The XSDSchemaImpl needs to load the base xml schema definitions prior to
> attempting to
> parse any user xml schemas. I guess that there needs to be a initialization
> phase that invokes
> the "XSDSchema.createMetaSchema" method with all the possible base schemas.
>
> I could simple parse each xml schema schema from xsd.resources.jar into a
> dom node and invoke it
> myself. Is this the right thing to do?
>
> If I have missed something blatantly obvious, please excuse me.
>
> I appreciate any help to resolve this issue.
>
> Thanks
>
> Dharminder Singh

--
Ed Merks


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XSD Schema schema discovery problem [message #562638 is a reply to message #1100] Fri, 27 September 2002 20:12 Go to previous message
Eclipse UserFriend
Originally posted by: dsingh.altoweb.com

Sorry Ed I think I figured out how to solve the problem.
I had crimson in the classpath and using crimson I was getting the following
exception when the
loading of the schema was happening.

Thanks

Dharminder Singh

org.xml.sax.SAXParseException: Relative URI "XMLSchema.dtd"; can not be
resolved without a document URI.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
at org.apache.crimson.parser.Parser2.parseSystemId(Parser2.java :2627)
at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.ja va:2605)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.j ava:1116)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java :488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl. java:433)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBu ilderImpl.java:1
79)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java :122)
at
org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResource Impl.java:136)
at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl. java:280)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:812)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:690)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetIm
pl.java:209)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetI
mpl.java:275)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getMagicSchemaForSchema(X SDSchemaImpl.jav
a:550)
at
org.eclipse.xsd.impl.XSDSchemaImpl.getSchemaForSchema(XSDSch emaImpl.java:628
)
at org.eclipse.xsd.impl.XSDSchemaImpl.createSchema(XSDSchemaImp l.java:440)
at org.eclipse.xsd.util.XSDParser.getSchema(XSDParser.java:266)

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:3D944019.6059C5DC@ca.ibm.com...
> Dharminder,
>
> The schema for schema is available via XSDUtil.getSchemaForSchema. All
this
> meta information is created automatically (on demand) so you should not
need to
> do anything. Are you experiencing a problem?
>
> Dharminder Singh wrote:
>
> > hi all.
> >
> > The XSDSchemaImpl needs to load the base xml schema definitions prior to
> > attempting to
> > parse any user xml schemas. I guess that there needs to be a
initialization
> > phase that invokes
> > the "XSDSchema.createMetaSchema" method with all the possible base
schemas.
> >
> > I could simple parse each xml schema schema from xsd.resources.jar into
a
> > dom node and invoke it
> > myself. Is this the right thing to do?
> >
> > If I have missed something blatantly obvious, please excuse me.
> >
> > I appreciate any help to resolve this issue.
> >
> > Thanks
> >
> > Dharminder Singh
>
> --
> Ed Merks
>
>
Previous Topic:Can't load Schema
Next Topic:Can't load Schema
Goto Forum:
  


Current Time: Fri Dec 27 08:55:31 GMT 2024

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

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

Back to the top