Code completion [message #43121] |
Fri, 30 April 2004 12:19  |
Eclipse User |
|
|
|
Hello everyone!
Could anyone ensure me that I have chosen the right tool (plugin) for my
purpose?
What I need is to query my XSD to get a list of elements that can be added
as subelements of some particular element. I search for a method that takes
a set of subelements of "theElement" in my XML document, checks it according
to the XSD ("theSchema") and returns a list of elements that can be added as
subelements of "theElement" without violating the XSD. It could be used e.g.
in code completion tool. The method could be something like this:
org.eclipse.emf.common.util.Elist
getLegalSubelementsAccordingToMyXmlSchema(org.w3c.dom.Elemen t theElement,
XSDSchema theSchema);
The question is whether this functionality is offered be the XML Schema
Infoset Model. I didn't succeed to find it out.
Thanks a lot!
Ondrej
|
|
|
Re: Code completion [message #43154 is a reply to message #43121] |
Fri, 30 April 2004 12:27  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
--------------5817DE975C16AA6264F93EE7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Ondrej,
Rob Tice appended a link a few notes up that you should probably have a look at
because your goal sounds highly related:
http://developer.k-int.com/OpenXSD
The XSD model is definitely good for doing the kind of analysis required to
solve a problem like this, but it doesn't provide a pre-canned solution.
Ondrej Rohlik wrote:
> Hello everyone!
>
> Could anyone ensure me that I have chosen the right tool (plugin) for my
> purpose?
>
> What I need is to query my XSD to get a list of elements that can be added
> as subelements of some particular element. I search for a method that takes
> a set of subelements of "theElement" in my XML document, checks it according
> to the XSD ("theSchema") and returns a list of elements that can be added as
> subelements of "theElement" without violating the XSD. It could be used e.g.
> in code completion tool. The method could be something like this:
>
> org.eclipse.emf.common.util.Elist
> getLegalSubelementsAccordingToMyXmlSchema(org.w3c.dom.Elemen t theElement,
> XSDSchema theSchema);
>
> The question is whether this functionality is offered be the XML Schema
> Infoset Model. I didn't succeed to find it out.
>
> Thanks a lot!
>
> Ondrej
--------------5817DE975C16AA6264F93EE7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Ondrej,
<p>Rob Tice appended a link a few notes up that you should probably have
a look at because your goal sounds highly related:
<blockquote> <a href="http://developer.k-int.com/OpenXSD">http://developer.k-int.com/OpenXSD</a></blockquote>
The XSD model is definitely good for doing the kind of analysis required
to solve a problem like this, but it doesn't provide a pre-canned solution.
<br>
<p>Ondrej Rohlik wrote:
<blockquote TYPE=CITE>Hello everyone!
<p>Could anyone ensure me that I have chosen the right tool (plugin) for
my
<br>purpose?
<p>What I need is to query my XSD to get a list of elements that can be
added
<br>as subelements of some particular element. I search for a method that
takes
<br>a set of subelements of "theElement" in my XML document, checks it
according
<br>to the XSD ("theSchema") and returns a list of elements that can be
added as
<br>subelements of "theElement" without violating the XSD. It could be
used e.g.
<br>in code completion tool. The method could be something like this:
<p>org.eclipse.emf.common.util.Elist
<br> getLegalSubelementsAccordingToMyXmlSchema(org.w3c.dom.Elemen t theElement,
<br>XSDSchema theSchema);
<p>The question is whether this functionality is offered be the XML Schema
<br>Infoset Model. I didn't succeed to find it out.
<p>Thanks a lot!
<p>Ondrej</blockquote>
</html>
--------------5817DE975C16AA6264F93EE7--
|
|
|
Re: Code completion [message #586466 is a reply to message #43121] |
Fri, 30 April 2004 12:27  |
Eclipse User |
|
|
|
--------------5817DE975C16AA6264F93EE7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Ondrej,
Rob Tice appended a link a few notes up that you should probably have a look at
because your goal sounds highly related:
http://developer.k-int.com/OpenXSD
The XSD model is definitely good for doing the kind of analysis required to
solve a problem like this, but it doesn't provide a pre-canned solution.
Ondrej Rohlik wrote:
> Hello everyone!
>
> Could anyone ensure me that I have chosen the right tool (plugin) for my
> purpose?
>
> What I need is to query my XSD to get a list of elements that can be added
> as subelements of some particular element. I search for a method that takes
> a set of subelements of "theElement" in my XML document, checks it according
> to the XSD ("theSchema") and returns a list of elements that can be added as
> subelements of "theElement" without violating the XSD. It could be used e.g.
> in code completion tool. The method could be something like this:
>
> org.eclipse.emf.common.util.Elist
> getLegalSubelementsAccordingToMyXmlSchema(org.w3c.dom.Elemen t theElement,
> XSDSchema theSchema);
>
> The question is whether this functionality is offered be the XML Schema
> Infoset Model. I didn't succeed to find it out.
>
> Thanks a lot!
>
> Ondrej
--------------5817DE975C16AA6264F93EE7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Ondrej,
<p>Rob Tice appended a link a few notes up that you should probably have
a look at because your goal sounds highly related:
<blockquote> <a href="http://developer.k-int.com/OpenXSD">http://developer.k-int.com/OpenXSD</a></blockquote>
The XSD model is definitely good for doing the kind of analysis required
to solve a problem like this, but it doesn't provide a pre-canned solution.
<br>
<p>Ondrej Rohlik wrote:
<blockquote TYPE=CITE>Hello everyone!
<p>Could anyone ensure me that I have chosen the right tool (plugin) for
my
<br>purpose?
<p>What I need is to query my XSD to get a list of elements that can be
added
<br>as subelements of some particular element. I search for a method that
takes
<br>a set of subelements of "theElement" in my XML document, checks it
according
<br>to the XSD ("theSchema") and returns a list of elements that can be
added as
<br>subelements of "theElement" without violating the XSD. It could be
used e.g.
<br>in code completion tool. The method could be something like this:
<p>org.eclipse.emf.common.util.Elist
<br> getLegalSubelementsAccordingToMyXmlSchema(org.w3c.dom.Elemen t theElement,
<br>XSDSchema theSchema);
<p>The question is whether this functionality is offered be the XML Schema
<br>Infoset Model. I didn't succeed to find it out.
<p>Thanks a lot!
<p>Ondrej</blockquote>
</html>
--------------5817DE975C16AA6264F93EE7--
|
|
|
Powered by
FUDForum. Page generated in 0.03117 seconds