Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xpath to sql translation

From: Tjerk Wolterink <tjerk@------------------.--->
To: NULL
Date: 12/1/2004 2:25:00 PM
Terry P wrote:
> Are there any tools (java classes, tag libraries) which can translate
> xpath statements into a SQL query?
> 
> Given an xpath query which has a predicate that filters node values or
> attributes, I want help constructing the Where clause of a SQL
> statement that will mirror the expressions and functions contained in
> the predicate.
> 
> Such a tool may require an XML to DB mapping or it would need to make
> assumptions about the structure of the document and the tables.
> 
> Thanks for any advice.
> 
> Terry

What sory of database are you talking about?
A ordinary relational database? Or an XML-database.
Xml-databases are new and not very fast, but there is extensive research in xml-database-system.
Those system support xpath and xquery as query languages.

I'f you want to map xpath onto sql, then your're right: you need some
rules about how xml is mapped onto the relational database.
With those rules you could map xpath expression to sql expressions.

I don't know wether they exists. I myself have my own mapping rules,
rather simplistic rules but it does the job for me.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent