Does Saxon xqj api support issuing insert queries?
If No, Is there any academic article discussing this? and what alternative should be used?
If Yes, is there any code example for doing so?
Any answer would be highly appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
XQJ isn’t designed for updating queries, so support for them would always be implementation-dependent.
In this thread from three years ago, Saxon’s author Michael Kay wrote that he wouldn’t want to do that, so it isn’t likely that it’s supported now.
If you’re OK with using the Saxon-specific S9API (which supports updates), you need the non-free Saxon-EE version, as the others don’t provide XQuery Update at all.