|
Re: XSDParser Question :( [message #68750 is a reply to message #68718] |
Sat, 22 July 2006 12:12 |
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 #68791 is a reply to message #68771] |
Sun, 23 July 2006 12:35 |
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 |
Ed Merks Messages: 33137 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 :)
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Re: XSDParser Question :( [message #598411 is a reply to message #68771] |
Sun, 23 July 2006 12:35 |
Ed Merks Messages: 33137 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.
>>
>>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03278 seconds