Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can't get XSD to work
Can't get XSD to work [message #53489] Fri, 22 September 2006 10:37 Go to next message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
I want to be able to use XSD for development. But I can't get it to work.
I've downloaded the XSD zip and unzipped it in my eclipse folder so
everything I need should be there?

I've added to the build path within a gmf project:

org.eclipse.emf.mapping.xsd2ecore.editor
org.eclipse.emf.mapping.xsd2ecore
org.eclipse.xsd.ecore.exporter
org.eclipse.xsd.ecore.importer
org.eclipse.xsd.edit
org.eclipse.xsd.editor
org.eclipse.xsd

I've then added a xsd file (from an example) but it just registers it as a
text file...

Could someone point me to some good docs or tell me what I'm doing wrong.

Cheers
Re: Can't get XSD to work [message #53516 is a reply to message #53489] Fri, 22 September 2006 11:00 Go to previous messageGo to next message
Alexander Haag is currently offline Alexander HaagFriend
Messages: 119
Registered: July 2009
Senior Member
Hi Gaff,

try downloading the xsd-plugin from the calisto-update-site via the
Eclipse-update-feature(Help ->Software updates->find and install
->search for new features..).
Maybe you missed something during manual installation.

Greets Alex

Gaff wrote:
> I want to be able to use XSD for development. But I can't get it to
> work. I've downloaded the XSD zip and unzipped it in my eclipse folder
> so everything I need should be there?
>
> I've added to the build path within a gmf project:
>
> org.eclipse.emf.mapping.xsd2ecore.editor
> org.eclipse.emf.mapping.xsd2ecore
> org.eclipse.xsd.ecore.exporter
> org.eclipse.xsd.ecore.importer
> org.eclipse.xsd.edit
> org.eclipse.xsd.editor
> org.eclipse.xsd
>
> I've then added a xsd file (from an example) but it just registers it as
> a text file...
> Could someone point me to some good docs or tell me what I'm doing wrong.
>
> Cheers
>
Re: Can't get XSD to work [message #53648 is a reply to message #53489] Fri, 22 September 2006 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Gaff,

Did you run eclipse.exe -clean to update the configuration after
unzipping the plugins?


Gaff wrote:
> I want to be able to use XSD for development. But I can't get it to
> work. I've downloaded the XSD zip and unzipped it in my eclipse folder
> so everything I need should be there?
>
> I've added to the build path within a gmf project:
>
> org.eclipse.emf.mapping.xsd2ecore.editor
> org.eclipse.emf.mapping.xsd2ecore
> org.eclipse.xsd.ecore.exporter
> org.eclipse.xsd.ecore.importer
> org.eclipse.xsd.edit
> org.eclipse.xsd.editor
> org.eclipse.xsd
>
> I've then added a xsd file (from an example) but it just registers it
> as a text file...
> Could someone point me to some good docs or tell me what I'm doing wrong.
>
> Cheers
>
Re: Can't get XSD to work [message #53701 is a reply to message #53516] Fri, 22 September 2006 12:23 Go to previous messageGo to next message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
Can't see individual files form Callisto.

Got everything from gmf modelling there.

Then total .zip from XSD download.

Pretty sure I have everything.

Maybe I just don't know how to use software properly but am pretty sure
a.xsd file would show up differenttly than just a text file. Am I right.

Note, that this example is the mindmap one from tutorial.

Tried using the mindmap.ecore file but that just shows up as having
errors, am looking through gmf group for solution to this:

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
org.xml.sax.SAXParseException: The processing instruction target matching
"[xX][mM][lL]" is not allowed.
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:307)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:268).....
....
....
....
Re: Can't get XSD to work [message #53725 is a reply to message #53648] Fri, 22 September 2006 12:23 Go to previous messageGo to next message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
Tried this, didn't work.
Re: Can't get XSD to work [message #53856 is a reply to message #53725] Fri, 22 September 2006 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Con,

Have you looked in the Error log for potential source of problems?


Con Gaff wrote:
> Tried this, didn't work.
>
Re: Can't get XSD to work [message #53922 is a reply to message #53701] Fri, 22 September 2006 12:57 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Con,

If you've installed XSD and there is no Open With -> Sample XML Schema
Editor on the popup menu for a .xsd file, then Eclipse does not think
you've installed XSD properly. The error log should provide
information to help indicate what might be wrong or missing. The
problem below is a basic error thrown by the SAX parser and indicates
that there is something not quite right about the XML itself...


Con Gaff wrote:
> Can't see individual files form Callisto.
>
> Got everything from gmf modelling there.
>
> Then total .zip from XSD download.
>
> Pretty sure I have everything.
>
> Maybe I just don't know how to use software properly but am pretty
> sure a.xsd file would show up differenttly than just a text file. Am I
> right.
>
> Note, that this example is the mindmap one from tutorial.
>
> Tried using the mindmap.ecore file but that just shows up as having
> errors, am looking through gmf group for solution to this:
>
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$Diagno sticWrappedException:
> org.xml.sax.SAXParseException: The processing instruction target
> matching "[xX][mM][lL]" is not allowed.
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:307)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:268).....
>
> ...
> ...
> ...
>
Previous Topic:Link Constraint with Java Expression causes Exception
Next Topic:Label text for EDatatType values
Goto Forum:
  


Current Time: Fri Dec 27 02:05:42 GMT 2024

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

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

Back to the top