Embedding XQuery in Java

我们两清 提交于 2019-12-07 04:41:05

问题


I need to retrieve some details from a MusicXML (xml) file in Java. I managed to read xml files in java - but through a web service (where I have to be online, connected to internet when I'm running my code). I came across XQuery where you can easily extract info from an XML file. But I need to embed XQuery in java (i.e. use xquery in java code), precise without using a web service. Is there any possible way, how I can embed XQuery (reading info from XML file), in java code?

Greatly appreciate any insight, suggestions and ideas. Many thanks in advance


回答1:


Use XQJ (XQuery for Java API). There are various tutorials for using XQJ on the web.




回答2:


How about SAXON XSLT & XQuery processor.SAXON




回答3:


Try using oracle XQuery for Java (XQJ API).

http://orafmwsoa.blogspot.com/2014/06/running-xquery-from-java-applications.html http://docs.oracle.com/cd/E16655_01/appdev.121/e17604/adx_j_xqj.htm



来源:https://stackoverflow.com/questions/3136921/embedding-xquery-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!