getDocument .... ino:response

Hi,

i make a xquery and the result is :


<?xml version="1.0" encoding="UTF-8"?>
<ino:response
xmlns:ino=“http://namespaces.softwareag.com/tamino/response2” xmlns:xql=“http://metalab.unc.edu/xql/”>
<xq:query xmlns:xq=“http://namespaces.softwareag.com/tamino/XQuery/result”></xq:query>
<ino:message ino:returnvalue=“0”>
ino:messagelineXQuery Request processing</ino:messageline>
</ino:message>
<xq:result xmlns:xq=“http://namespaces.softwareag.com/tamino/XQuery/result”>

<Dvd_film>1</Dvd_film>
1
Francais
<Sous_titre>Espagnol</Sous_titre>
<Remarque_dvd></Remarque_dvd>
non

</xq:result>
<ino:message ino:returnvalue=“0”>
ino:messagelineXQuery Request processed</ino:messageline>
</ino:message>
</ino:response>


how can i get just this :


<Dvd_film>1</Dvd_film>
1
Francais
<Sous_titre>Espagnol</Sous_titre>
<Remarque_dvd></Remarque_dvd>
non




Thanks !!!

If you have Tamino 4.2 then something along the lines of the following should produce what you want.

{?serialization method='xml'?} xquery expression</pre><BR><BR>or<BR><BR><pre class="ip-ubbcode-code-pre">{?serialization method='xml'?} <result>{xquery expression}</result>



for multi element results.

i have the version 4.1.4 …

and i don’t understand how … you must include this in the return of the xquery ???

i have TResponse resp = accessor.xuery(query) ;

I don’t think serialization was available in Tamino 4.1.

In your code snippet you would have:

 query = "{?serialization method='xml'?} <result>{input()/ABC}</result>"; 



You just prefix the XQuery expression with the serialization request.