Invalid XQuery constructor

Error constant SQLE_INVALID_XQUERY_CONSTRUCTOR
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –905
SQLSTATE WX012
Sybase error code 13578
Probable cause

The XQuery constructor passed as the first argument to XMLGEN was not valid.