creating XPATH 2.0 expressions while navigating schema [message #25127] |
Wed, 16 July 2003 13:51 |
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] |
Thu, 24 July 2003 03:17 |
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 #708280 is a reply to message #708206] |
Tue, 02 August 2011 15:18 |
Ed Merks Messages: 33264 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds