XSD Schema schema discovery problem [message #1043] |
Thu, 26 September 2002 21:57 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Ed Merks 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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03610 seconds