Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 13:51 Go to next message
Eclipse UserFriend
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] Thu, 24 July 2003 03:17 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 24 July 2003 03:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
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
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: creating XPATH 2.0 expressions while navigating schema [message #708206 is a reply to message #25127] Tue, 02 August 2011 15:10 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
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 15:18 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
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 ?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:mistake
Next Topic:XML editor
Goto Forum:
  


Current Time: Fri Apr 19 21:08:35 GMT 2024

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

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

Back to the top