Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » creating XPATH 2.0 expressions while navigating schema
creating XPATH 2.0 expressions while navigating schema [message #25127] Wed, 16 July 2003 09:51 Go to next message
Eclipse User
Originally posted by: carman.itc.it

Hello XSD users,

I am currently using the XSD API to perform semantic (dictionary based)
matching of XML schemas.

While navigating through a schema (starting from a global element
declaration / type definition and going right down to primitive type
definitions), I would like to record the path I am traversing using an
XPATH 2.0 expression, so that I can later easily access the instance data
from XML documents adhering to the schema.

Does anybody have any experience in creating such path expressions while
navigating the schema?

Any hints / example code would be much appreciated. Forgive me if the
process is extremely simple, or if I should be asking this question to a
different mailing list - my knowledge of XPATH is relatively limited.

Yours,

Mark Carman
Re: creating XPATH 2.0 expressions while navigating schema [message #25374 is a reply to message #25127] Wed, 23 July 2003 23:17 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Mark,

Sorry, we don't have any examples we can point you to...


Mark Carman wrote:

> Hello XSD users,
>
> I am currently using the XSD API to perform semantic (dictionary based)
> matching of XML schemas.
>
> While navigating through a schema (starting from a global element
> declaration / type definition and going right down to primitive type
> definitions), I would like to record the path I am traversing using an
> XPATH 2.0 expression, so that I can later easily access the instance data
> from XML documents adhering to the schema.
>
> Does anybody have any experience in creating such path expressions while
> navigating the schema?
>
> Any hints / example code would be much appreciated. Forgive me if the
> process is extremely simple, or if I should be asking this question to a
> different mailing list - my knowledge of XPATH is relatively limited.
>
> Yours,
>
> Mark Carman
>
>
Re: creating XPATH 2.0 expressions while navigating schema [message #574864 is a reply to message #25127] Wed, 23 July 2003 23:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26014
Registered: July 2009
Senior Member
Mark,

Sorry, we don't have any examples we can point you to...


Mark Carman wrote:

> Hello XSD users,
>
> I am currently using the XSD API to perform semantic (dictionary based)
> matching of XML schemas.
>
> While navigating through a schema (starting from a global element
> declaration / type definition and going right down to primitive type
> definitions), I would like to record the path I am traversing using an
> XPATH 2.0 expression, so that I can later easily access the instance data
> from XML documents adhering to the schema.
>
> Does anybody have any experience in creating such path expressions while
> navigating the schema?
>
> Any hints / example code would be much appreciated. Forgive me if the
> process is extremely simple, or if I should be asking this question to a
> different mailing list - my knowledge of XPATH is relatively limited.
>
> Yours,
>
> Mark Carman
>
>
Re: creating XPATH 2.0 expressions while navigating schema [message #708206 is a reply to message #25127] Tue, 02 August 2011 11:10 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 745
Registered: July 2009
Location: Grenoble, France
Senior Member
8 years later, I come back with the same question: is there anything available at Eclipse to perform transformations/resolutions between an XPath expression and an org.eclipse.xsd.XSDSchemaContent ?
Re: creating XPATH 2.0 expressions while navigating schema [message #708280 is a reply to message #708206] Tue, 02 August 2011 11:18 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26014
Registered: July 2009
Senior Member
Michael,

No, there isn't. You might imagine there's something like that for DOM
itself, and you'd be able to reuse that because you can always get at
the underlying DOM of anything in the schema model and vice versa.


On 02/08/2011 5:10 PM, Mickael Istria wrote:
> 8 years later, I come back with the same question: is there anything
> available at Eclipse to perform transformations/resolutions between an
> XPath expression and an org.eclipse.xsd.XSDSchemaContent ?
Previous Topic:mistake
Next Topic:XML editor
Goto Forum:
  


Current Time: Mon Sep 01 07:38:15 EDT 2014

Powered by FUDForum. Page generated in 0.01686 seconds