Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XSDParser Question :(
XSDParser Question :( [message #68718] Sat, 22 July 2006 02:40 Go to next message
Spirit is currently offline Spirit
Messages: 15
Registered: July 2009
Junior Member
Hi every one:

I got a question concerning parsing an xsd file with the XSDParser class of
org.eclipse.xsd.

I used the parse method to parse a file and got a XSDSchema, and from the
XSDSchema I got XSDElementDeclarations and XSDTypeDefinitions.

The question is : how can I get the exact content of an
XSDElementDeclarations ? Coz I need to display the tree structor of the
element in a GEF application, so I must get this information.

I know an Element could be got by calling getElement(), but that way I have
to deal with a XML Element, which could be difficult to use since what I
need is the structor of the XSD file.

Any suggestion would be thankful :)
Re: XSDParser Question :( [message #68750 is a reply to message #68718] Sat, 22 July 2006 12:12 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

I would suggest looking at how the "XSD Editor" displays the tree
structure of a .xsd file in the outline view. WTP's XML Schema editor
displays the XSD model instances using GEF, so that's another thing that
might be useful. And finally, the GMF project lets you generate a
graphical editor from an Ecore model, so perhaps trying that with the
XSD model will generate something that's close to your needs.

ÕÅÏàì¶ wrote:
> Hi every one:
>
> I got a question concerning parsing an xsd file with the XSDParser class of
> org.eclipse.xsd.
>
> I used the parse method to parse a file and got a XSDSchema, and from the
> XSDSchema I got XSDElementDeclarations and XSDTypeDefinitions.
>
> The question is : how can I get the exact content of an
> XSDElementDeclarations ? Coz I need to display the tree structor of the
> element in a GEF application, so I must get this information.
>
> I know an Element could be got by calling getElement(), but that way I have
> to deal with a XML Element, which could be difficult to use since what I
> need is the structor of the XSD file.
>
> Any suggestion would be thankful :)
>
>
>
Re: XSDParser Question :( [message #68771 is a reply to message #68750] Sat, 22 July 2006 15:55 Go to previous messageGo to next message
Spirit is currently offline Spirit
Messages: 15
Registered: July 2009
Junior Member
Thanks so much for your suggestion :)

But how can I get the source code of the "XSD Editor" and "WTP's XML Schema
Editor" you mentioned ?

Is it included in the CVS Repositoy of Eclipse ?

Thanks again in advance :)

"Ed Merks" <merks@ca.ibm.com> ???? news:e9t4m6$mn5$1@utils.eclipse.org...
> I would suggest looking at how the "XSD Editor" displays the tree
> structure of a .xsd file in the outline view. WTP's XML Schema editor
> displays the XSD model instances using GEF, so that's another thing that
> might be useful. And finally, the GMF project lets you generate a
> graphical editor from an Ecore model, so perhaps trying that with the
> XSD model will generate something that's close to your needs.
>
>
Re: XSDParser Question :( [message #68791 is a reply to message #68771] Sun, 23 July 2006 12:35 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------030307020703020706090108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

The source is packaged in the standard Eclipse way in the source plugin
that comes with our SDK zip download and can be accessed via CVS:

http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/plugins/


??? wrote:
> Thanks so much for your suggestion :)
>
> But how can I get the source code of the "XSD Editor" and "WTP's XML Schema
> Editor" you mentioned ?
>
> Is it included in the CVS Repositoy of Eclipse ?
>
> Thanks again in advance :)
>
> "Ed Merks" <merks@ca.ibm.com> ???? news:e9t4m6$mn5$1@utils.eclipse.org...
>
>> I would suggest looking at how the "XSD Editor" displays the tree
>> structure of a .xsd file in the outline view. WTP's XML Schema editor
>> displays the XSD model instances using GEF, so that's another thing that
>> might be useful. And finally, the GMF project lets you generate a
>> graphical editor from an Ecore model, so perhaps trying that with the
>> XSD model will generate something that's close to your needs.
>>
>>
Re: XSDParser Question :( [message #598396 is a reply to message #68718] Sat, 22 July 2006 12:12 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
I would suggest looking at how the "XSD Editor" displays the tree
structure of a .xsd file in the outline view. WTP's XML Schema editor
displays the XSD model instances using GEF, so that's another thing that
might be useful. And finally, the GMF project lets you generate a
graphical editor from an Ecore model, so perhaps trying that with the
XSD model will generate something that's close to your needs.

ÕÅÏàì¶ wrote:
> Hi every one:
>
> I got a question concerning parsing an xsd file with the XSDParser class of
> org.eclipse.xsd.
>
> I used the parse method to parse a file and got a XSDSchema, and from the
> XSDSchema I got XSDElementDeclarations and XSDTypeDefinitions.
>
> The question is : how can I get the exact content of an
> XSDElementDeclarations ? Coz I need to display the tree structor of the
> element in a GEF application, so I must get this information.
>
> I know an Element could be got by calling getElement(), but that way I have
> to deal with a XML Element, which could be difficult to use since what I
> need is the structor of the XSD file.
>
> Any suggestion would be thankful :)
>
>
>
Re: XSDParser Question :( [message #598403 is a reply to message #68750] Sat, 22 July 2006 15:55 Go to previous message
Spirit is currently offline Spirit
Messages: 15
Registered: July 2009
Junior Member
Thanks so much for your suggestion :)

But how can I get the source code of the "XSD Editor" and "WTP's XML Schema
Editor" you mentioned ?

Is it included in the CVS Repositoy of Eclipse ?

Thanks again in advance :)

"Ed Merks" <merks@ca.ibm.com> ???? news:e9t4m6$mn5$1@utils.eclipse.org...
> I would suggest looking at how the "XSD Editor" displays the tree
> structure of a .xsd file in the outline view. WTP's XML Schema editor
> displays the XSD model instances using GEF, so that's another thing that
> might be useful. And finally, the GMF project lets you generate a
> graphical editor from an Ecore model, so perhaps trying that with the
> XSD model will generate something that's close to your needs.
>
>
Re: XSDParser Question :( [message #598411 is a reply to message #68771] Sun, 23 July 2006 12:35 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030307020703020706090108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

The source is packaged in the standard Eclipse way in the source plugin
that comes with our SDK zip download and can be accessed via CVS:

http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.xs d/plugins/


??? wrote:
> Thanks so much for your suggestion :)
>
> But how can I get the source code of the "XSD Editor" and "WTP's XML Schema
> Editor" you mentioned ?
>
> Is it included in the CVS Repositoy of Eclipse ?
>
> Thanks again in advance :)
>
> "Ed Merks" <merks@ca.ibm.com> ???? news:e9t4m6$mn5$1@utils.eclipse.org...
>
>> I would suggest looking at how the "XSD Editor" displays the tree
>> structure of a .xsd file in the outline view. WTP's XML Schema editor
>> displays the XSD model instances using GEF, so that's another thing that
>> might be useful. And finally, the GMF project lets you generate a
>> graphical editor from an Ecore model, so perhaps trying that with the
>> XSD model will generate something that's close to your needs.
>>
>>
Previous Topic:XSDParser Question :(
Next Topic:About org.eclipse.xsd.provider
Goto Forum:
  


Current Time: Thu Oct 23 01:57:23 GMT 2014

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

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