Is there a way to execute XQuery queries?
Hi,
Unfortunately not. XPath is possible, though.
Kind regards,
Alexander
1 Like
I solved it with a Java snippet:
// Your custom imports:
import com.saxonica.xqj.SaxonXQDataSource;
import javax.xml.xquery.XQException;
import javax.xml.xquery.XQResultSequence;
// Enter your code here:
try {
final XQResultSequence result = new SaxonXQDataSource().getConnection().prepareExpression(c_XQuery).executeQuery();
while (result.next()) out_XML = result.getItemAsString(null);
} catch (XQException e) {
throw new RuntimeException(e);
}
3 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.