DataSet and namespaces

Hello,

I would like to use the data adapter to update my documents in the tamino database using the .NET API.

I worked fine when there were no namespace in my xml document. Since there I use namespace, the ‘adapter.Fill(dataSet,query) raise an exception. (TaminoException)
If I declare the namespace in the query, the exception is :

"TANPIE0001: FillUpdateable operation failed: INOXQE6352: XQuery parsing error. : Syntax error at line 1, column 177: ."

My query is :

declare namespace ctxCS=‘myNamespace’ input()/ctxCS:contractXContractStatus/ctxCS:contract[@ID=‘3’]
(this query works fine in the tamino interactive interface)

If I don’t declare the namespace in the query, the exception is :

"TANPIE0001: FillUpdateable operation failed: INOXQE6354: Namespace prefix undefined. : Namespace prefix: ctxCS. "

My query is :
input()/ctxCS:contractXContractStatus/ctxCS:contract[@ID=2’]


thanks in advance for your help…

Ok… that’s right, I resolved by myself, when I understood what mean “queryprolog”
see
http://tamino.demozone.softwareag.com/demoXQuery/XQueryDemo/reference.jsp?show=user&page=nuts#xq-nb-prolog

The explanation of “prolog” in the .NetAPI documentaion is not very relevant…