I want to change my current return statement in my XQuery, which is :
return
<p>XML File Stored Successfully</p>
I want to make this return statement capable of handling the situation if there is an error, then return an error code to the user, if there is no error, then return the message above to the user.
I think an if-else construct should be placed under return for my purpose. But I really have no idea what condition should be there for the if, could experts help a little? Thanks in advance.