Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Code completion
Code completion [message #43121] Fri, 30 April 2004 16:19 Go to next message
Ondrej Rohlik is currently offline Ondrej RohlikFriend
Messages: 13
Registered: July 2009
Junior Member
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 16:27 Go to previous message
Eclipse UserFriend
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>&nbsp;<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>&nbsp;
<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 16:27 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
--------------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>&nbsp;<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>&nbsp;
<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--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Code completion
Next Topic:Namespaces
Goto Forum:
  


Current Time: Tue Apr 16 06:29:42 GMT 2024

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

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

Back to the top