Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsParse XSD using WTP plugins
https://www.eclipse.org/forums/index.php/mv/msg/152756/481016/#msg_481016
Sub: I want to parse my xsd file using the parser that WTP provides.
I have some overlay elements in my xsd.Hence the parser that we currently
use in the Project is not showing the element (Overlayed element).
When I open the xsd with the "XML Schema Editor" that WTP supports in
Eclipse, I can see the overlayed element.
Hence I want to parse my xsd with the parser that WTP provides and list
all the elements to see how it resolves the overlay.
I'm not sure which plugin/file in WTP is responsible for parsing and
showing the "XML Schema Editor" in Eclipse.
Thanks in advance,
Smitha.]]>Smitha2009-08-19T11:04:58-00:00Re: Parse XSD using WTP plugins
https://www.eclipse.org/forums/index.php/mv/msg/152756/481017/#msg_481017
--------------080007080306030308050405
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Smitha,
In the XSD newsgroup I answered like this:
I'm pretty sure that the XSD editor uses EMF's XSDResourceImpl to
parse instances. The XSD model acts as a wrapper around the DOM, so
for any XSD component, it's possible to get at the DOM Element it
wraps. The WTP's schema editor uses the SSE DOM to display the DOM
in a source view and uses the XSD model for the outline (as far as I
remember). It's best to ask about the editor's aspects on the WTP
newsgroup...
Have you tried using it? I'm not actually sure what an "overlay
element" is but in the end, I'm pretty sure that such things are handled
by WTP only because it's captured in the DOM and as I explained, the DOM
is available from the XSD model objects...
Smitha wrote:
> Hi,
>
> Sub: I want to parse my xsd file using the parser that WTP provides.
>
> I have some overlay elements in my xsd.Hence the parser that we
> currently use in the Project is not showing the element (Overlayed
> element).
>
> When I open the xsd with the "XML Schema Editor" that WTP supports in
> Eclipse, I can see the overlayed element.
>
> Hence I want to parse my xsd with the parser that WTP provides and
> list all the elements to see how it resolves the overlay.
>
> I'm not sure which plugin/file in WTP is responsible for parsing and
> showing the "XML Schema Editor" in Eclipse.
>
> Thanks in advance,
> Smitha.
>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Smitha,
<br>
<br>
In the XSD newsgroup I answered like this:<br>
<blockquote>I'm pretty sure that the XSD editor uses EMF's
XSDResourceImpl to parse instances.]]>Ed Merks2009-08-19T11:12:29-00:00