Hi Mehdi38,
It is possible, use the new codeunit to point to a new outstream variable "Outstr" with CreateOutStream, I used UTF8 for V14, but it should work for V15 in a similar way.
Then for your XMLPort, declare a variable MyXMLPort.
MyXMLPort.FilterDataset(valuesToFilterWith);//use a function on the xmlport to filter your dataset
MyXMLPort.SetDestination(OutStr);
if MyXMLPort.Export() then;
declare inStr variable of type InStream.
Also declare 2 text variables without a size limit:
Line:Text;
XmlTxt: Text;
use the same codeunit to CreateInstream(inStr)
inStr.ReatText(XmlTxt);
While not inStr.EOS do begin
inStr.ReadText(Line);
XmlTxt += Line;
end;
now your XmlTxt contains the xml you need.
Cheers,
Robert
Please verify my answer, if you find it useful, that way others can find this solution easier!